powerpc/32s: fix initial setup of segment registers on secondary CPU
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 11 Jun 2019 15:47:20 +0000 (15:47 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 15 Jun 2019 13:43:54 +0000 (23:43 +1000)
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: Erhard F. <erhard_f@mailbox.org>
Fixes: 215b823707ce ("powerpc/32s: set up an early static hash table for KASAN")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/head_32.S

index 755fab9641d6108fb7a549d7953c5bb4dcf512c1..c82947a3892a19255b5598ee8f37564926b427b9 100644 (file)
@@ -757,6 +757,7 @@ __secondary_start:
        stw     r0,0(r3)
 
        /* load up the MMU */
+       bl      load_segment_registers
        bl      load_up_mmu
 
        /* ptr to phys current thread */