提交 dd184343 编写于 作者: P Paul Mackerras

powerpc: Clear the BSS at the start of early_init with ARCH=ppc

Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 7ac59c62
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册