diff options
author | Olaf Hering <olh@suse.de> | 2005-10-28 20:46:45 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-29 01:07:38 -0400 |
commit | 9b0cbe97566dd7123eee0462d91703434fe61090 (patch) | |
tree | 816d6f93e2b84741c891e5edd600c6fdab91b675 /arch/ppc64/boot/main.c | |
parent | 06cf26beffc54bb43aebbefa60f84e0dffde3141 (diff) |
[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 'arch/ppc64/boot/main.c')
-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); | |||
26 | #define ONE_MB 0x100000 | 26 | #define ONE_MB 0x100000 |
27 | 27 | ||
28 | extern char _start[]; | 28 | extern char _start[]; |
29 | extern char __bss_start[]; | ||
29 | extern char _end[]; | 30 | extern char _end[]; |
30 | extern char _vmlinux_start[]; | 31 | extern char _vmlinux_start[]; |
31 | extern char _vmlinux_end[]; | 32 | extern char _vmlinux_end[]; |
@@ -138,6 +139,8 @@ void start(unsigned long a1, unsigned long a2, void *promptr) | |||
138 | Elf64_Ehdr *elf64; | 139 | Elf64_Ehdr *elf64; |
139 | Elf64_Phdr *elf64ph; | 140 | Elf64_Phdr *elf64ph; |
140 | 141 | ||
142 | memset(__bss_start, 0, _end - __bss_start); | ||
143 | |||
141 | prom = (int (*)(void *)) promptr; | 144 | prom = (int (*)(void *)) promptr; |
142 | chosen_handle = finddevice("/chosen"); | 145 | chosen_handle = finddevice("/chosen"); |
143 | if (chosen_handle == (void *) -1) | 146 | if (chosen_handle == (void *) -1) |