summaryrefslogtreecommitdiff
path: root/firmware/stub/utility_stub.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2011-11-01 21:02:33 +0000
committerStefan Reinauer <reinauer@chromium.org>2011-11-02 12:59:54 -0700
commit66264b5d9778e7f3e99f4f72e170d2ef6a819a0e (patch)
tree56a3328331887eb33cae22a621b49b2ebf4d2d86 /firmware/stub/utility_stub.c
parent01f276bb0ef07b705104fbf8e62494be3ba61d03 (diff)
downloadvboot-66264b5d9778e7f3e99f4f72e170d2ef6a819a0e.tar.gz
Move Memset from vboot_reference to vbexport/u-boot
All memory operations (except the "safe ones") live in the firmware so the fast operations can be used. Except Memset. This CL changes that problem. This CL needs https://gerrit.chromium.org/gerrit/#change,10992 and a similar change in H2C. BUG=chrome-os-partner:6313 TEST=run coreboot/u-boot on Stumpy Change-Id: Ic961ebbb45470c8fc1316490b902759dcf221deb Reviewed-on: https://gerrit.chromium.org/gerrit/10993 Tested-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'firmware/stub/utility_stub.c')
-rw-r--r--firmware/stub/utility_stub.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/stub/utility_stub.c b/firmware/stub/utility_stub.c
index 489b0f72..e3ec19be 100644
--- a/firmware/stub/utility_stub.c
+++ b/firmware/stub/utility_stub.c
@@ -24,3 +24,9 @@ int Memcmp(const void* src1, const void* src2, size_t n) {
void* Memcpy(void* dest, const void* src, uint64_t n) {
return memcpy(dest, src, (size_t)n);
}
+
+void* Memset(void* d, const uint8_t c, uint64_t n) {
+ return memset(d, c, n);
+}
+
+