cbfstool: Fill memory allocated in create_cbfs_file() with 0xff
This should improve programming speed a bit. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4975 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
1a76ebe2a2
commit
f4aca1da48
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue