Skip to content

Commit

Permalink
powerpc: Clear the BSS at the start of early_init with ARCH=ppc
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Oct 17, 2005
1 parent 7ac59c6 commit dd18434
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dd18434

Please sign in to comment.