From: Paul Mackerras Date: Mon, 17 Oct 2005 10:13:47 +0000 (+1000) Subject: powerpc: Clear the BSS at the start of early_init with ARCH=ppc X-Git-Tag: v2.6.15-rc1~59^2~161 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd184343b45e94fd3b0d4d0865070924bc6195ab;p=platform%2Fkernel%2Flinux-3.10.git powerpc: Clear the BSS at the start of early_init with ARCH=ppc Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index e68f848..b95f7cf 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -294,6 +294,10 @@ unsigned long __init early_init(unsigned long dt_ptr) { unsigned long offset = reloc_offset(); + /* First zero the BSS -- use memset_io, some platforms don't have + * caches on yet */ + memset_io(PTRRELOC(&__bss_start), 0, _end - __bss_start); + /* * Identify the CPU type and fix up code sections * that depend on which cpu we have.