git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
arch
/
ppc
/
boot
/
utils
/
mkbugboot.c
diff --git
a/arch/ppc/boot/utils/mkbugboot.c
b/arch/ppc/boot/utils/mkbugboot.c
index
f6629a2
..
8861222
100644
(file)
--- a/
arch/ppc/boot/utils/mkbugboot.c
+++ b/
arch/ppc/boot/utils/mkbugboot.c
@@
-96,7
+96,7
@@
void write_bugboot_header(int32_t out_fd, uint32_t boot_size)
uint8_t header_block[HEADER_SIZE];
bug_boot_header_t *bbh = (bug_boot_header_t *)&header_block[0];
uint8_t header_block[HEADER_SIZE];
bug_boot_header_t *bbh = (bug_boot_header_t *)&header_block[0];
-
bzero(header_block
, HEADER_SIZE);
+
memset(header_block, 0
, HEADER_SIZE);
/* Fill in the PPCBUG ROM boot header */
strncpy(bbh->magic_word, "BOOT", 4); /* PPCBUG magic word */
/* Fill in the PPCBUG ROM boot header */
strncpy(bbh->magic_word, "BOOT", 4); /* PPCBUG magic word */