diff options
author | Mark A. Greer <mgreer@mvista.com> | 2006-10-26 01:36:49 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-16 06:38:19 +0100 |
commit | 556b09c8189b9b3f5626ca73196009e397503f85 (patch) | |
tree | 2f4ee5ec48bcdd2aa058ae27e16635ca1f73c74d /arch/powerpc/kernel/setup_32.c | |
parent | [POWERPC] bootwrapper: Make ft_create_node() pay attention to the parent para... (diff) | |
download | linux-556b09c8189b9b3f5626ca73196009e397503f85.tar.xz linux-556b09c8189b9b3f5626ca73196009e397503f85.zip |
[POWERPC] 32-bit early_init() should zero from __bss_start to __bss_stop only
Currently, early_init() in setup_32.c zeroes from '_bss_start' to '_end'.
It should only zero from '__bss_start' to '__bss_stop'. This patch does that.
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 44a6a3c47feb..f688548f74cd 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -92,7 +92,8 @@ unsigned long __init early_init(unsigned long dt_ptr) /* First zero the BSS -- use memset_io, some platforms don't have * caches on yet */ - memset_io((void __iomem *)PTRRELOC(&__bss_start), 0, _end - __bss_start); + memset_io((void __iomem *)PTRRELOC(&__bss_start), 0, + __bss_stop - __bss_start); /* * Identify the CPU type and fix up code sections |