diff options
author | Olaf Hering <olh@suse.de> | 2005-10-29 02:46:45 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-29 07:07:38 +0200 |
commit | 9b0cbe97566dd7123eee0462d91703434fe61090 (patch) | |
tree | 816d6f93e2b84741c891e5edd600c6fdab91b675 /arch/ppc64/boot/main.c | |
parent | [PATCH] ppc64 boot: cleanup linker script (diff) | |
download | linux-9b0cbe97566dd7123eee0462d91703434fe61090.tar.xz linux-9b0cbe97566dd7123eee0462d91703434fe61090.zip |
[PATCH] ppc64 boot: use memset to clear bss
Use memset to clear bss, instead of own version.
Signed-off-by: Olaf Hering <olh@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to '')
-rw-r--r-- | arch/ppc64/boot/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/ppc64/boot/main.c b/arch/ppc64/boot/main.c index d039c47f8e5a..c2c1f3309113 100644 --- a/arch/ppc64/boot/main.c +++ b/arch/ppc64/boot/main.c @@ -26,6 +26,7 @@ extern void flush_cache(void *, unsigned long); #define ONE_MB 0x100000 extern char _start[]; +extern char __bss_start[]; extern char _end[]; extern char _vmlinux_start[]; extern char _vmlinux_end[]; @@ -138,6 +139,8 @@ void start(unsigned long a1, unsigned long a2, void *promptr) Elf64_Ehdr *elf64; Elf64_Phdr *elf64ph; + memset(__bss_start, 0, _end - __bss_start); + prom = (int (*)(void *)) promptr; chosen_handle = finddevice("/chosen"); if (chosen_handle == (void *) -1) |