Commit b7f8b440 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/32s: fix initial setup of segment registers on secondary CPU

The patch referenced below moved the loading of segment registers
out of load_up_mmu() in order to do it earlier in the boot sequence.
However, the secondary CPU still needs it to be done when loading up
the MMU.
Reported-by: default avatarErhard F. <erhard_f@mailbox.org>
Fixes: 215b8237 ("powerpc/32s: set up an early static hash table for KASAN")
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent c21f5a9e
...@@ -757,6 +757,7 @@ __secondary_start: ...@@ -757,6 +757,7 @@ __secondary_start:
stw r0,0(r3) stw r0,0(r3)
/* load up the MMU */ /* load up the MMU */
bl load_segment_registers
bl load_up_mmu bl load_up_mmu
/* ptr to phys current thread */ /* ptr to phys current thread */
......
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