summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2011-11-01 20:57:17 +0000
committerStefan Reinauer <reinauer@chromium.org>2011-11-02 12:59:47 -0700
commitff7f9647c491066feedd8dcee9c7c3b0fd466394 (patch)
treec50df408b47df0195d068aaf36caa58a7ac35d8e /lib
parent3f63d9581d043126bb4fcc5eaadbb43f73518556 (diff)
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. There is another CL for this issue (removing the function from vboot_reference) BUG=chrome-os-partner:6313 TEST=run coreboot/u-boot on Stumpy Signed-off-by: Stefan Reinauer <reinauer@google.com> Change-Id: Ic2ee5970d2ee9df64a9eda261a4348341cb4b31a Reviewed-on: https://gerrit.chromium.org/gerrit/10992 Tested-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/vbexport/utility.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/vbexport/utility.c b/lib/vbexport/utility.c
index 97b41c93c0..6bc53caed1 100644
--- a/lib/vbexport/utility.c
+++ b/lib/vbexport/utility.c
@@ -104,3 +104,9 @@ 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);
+}
+