Skip to content

Commit

Permalink
[POWERPC] 32-bit early_init() should zero from __bss_start to __bss_s…
Browse files Browse the repository at this point in the history
…top 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 <[email protected]>
Acked-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
  • Loading branch information
Mark A. Greer authored and paulusmack committed Mar 16, 2007
1 parent 86a1b63 commit 556b09c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 556b09c

Please sign in to comment.