Commit 7934cea7 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/32: use memset() instead of memset_io() to zero BSS

Since commit 400c47d8 ("powerpc32: memset: only use dcbz once cache is
enabled"), memset() can be used before activation of the cache,
so no need to use memset_io() for zeroing the BSS.
Acked-by: default avatarDmitry Vyukov <dvyukov@google.com>
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent adcf5918
...@@ -21,8 +21,8 @@ notrace unsigned long __init early_init(unsigned long dt_ptr) ...@@ -21,8 +21,8 @@ notrace unsigned long __init early_init(unsigned long dt_ptr)
{ {
unsigned long offset = reloc_offset(); unsigned long offset = reloc_offset();
/* First zero the BSS -- use memset_io, some platforms don't have caches on yet */ /* First zero the BSS */
memset_io((void __iomem *)PTRRELOC(&__bss_start), 0, __bss_stop - __bss_start); memset(PTRRELOC(&__bss_start), 0, __bss_stop - __bss_start);
/* /*
* Identify the CPU type and fix up code sections * Identify the CPU type and fix up code sections
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment