Commit:     556b09c8189b9b3f5626ca73196009e397503f85
Parent:     86a1b63349bb2cbed6c2cbf8f9e9de9259a404df
Author:     Mark A. Greer <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 25 16:36:49 2006 -0700
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Fri Mar 16 16:38:19 2007 +1100

    [POWERPC] 32-bit early_init() should zero from __bss_start to __bss_stop 
    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 
    Signed-off-by: Mark A. Greer <[EMAIL PROTECTED]>
    Acked-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 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 44a6a3c..f688548 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 - 
+       memset_io((void __iomem *)PTRRELOC(&__bss_start), 0,
+                       __bss_stop - __bss_start);
         * Identify the CPU type and fix up code sections
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to