projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ac59c6
)
powerpc: Clear the BSS at the start of early_init with ARCH=ppc
author
Paul Mackerras
<paulus@samba.org>
Mon, 17 Oct 2005 10:13:47 +0000
(20:13 +1000)
committer
Paul Mackerras
<paulus@samba.org>
Mon, 17 Oct 2005 10:13:47 +0000
(20:13 +1000)
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/setup_32.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/kernel/setup_32.c
b/arch/powerpc/kernel/setup_32.c
index e68f848f24bfddf266a763219a2ec1c7f597304b..b95f7cf693e69b857cba6b396ea5d9e8bf7f4caa 100644
(file)
--- 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.