From f4aca1da486d06fbb8e2da080558b982e05dfbd8 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Sun, 6 Dec 2009 12:14:39 +0000 Subject: cbfstool: Fill memory allocated in create_cbfs_file() with 0xff This should improve programming speed a bit. Signed-off-by: Peter Stuge Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4975 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/cbfstool/common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util') diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c index e87bc65bb3..dd675cac03 100644 --- a/util/cbfstool/common.c +++ b/util/cbfstool/common.c @@ -279,6 +279,7 @@ void *create_cbfs_file(const char *filename, void *data, uint32_t * datasize, headersize); exit(1); } + memset(newdata, 0xff, *datasize + headersize); struct cbfs_file *nextfile = (struct cbfs_file *)newdata; strncpy(nextfile->magic, "LARCHIVE", 8); nextfile->len = htonl(*datasize); -- cgit v1.2.3