]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/interrupt: halt early boot interrupts if paca is not set up
authorNicholas Piggin <npiggin@gmail.com>
Mon, 26 Sep 2022 05:56:20 +0000 (15:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:13 +0000 (19:22 +1000)
commite35f6e57f25a5fec45a55d79bedbb104bae0a4c4
tree30d137b21beef7499d9fcc7d27a4cc9199e33b84
parent86a95ffc3dc44ae9f4b1a69c0e21dbb9c7f3e752
powerpc/64s/interrupt: halt early boot interrupts if paca is not set up

Ensure r13 is zero from very early in boot until it gets set to the
boot paca pointer. This allows early program and mce handlers to halt
if there is no valid paca, rather than potentially run off into the
weeds. This preserves register and memory contents for low level
debugging tools.

Nothing could be printed to console at this point in any case because
even udbg is only set up after the boot paca is set, so this shouldn't
be missed.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220926055620.2676869-6-npiggin@gmail.com
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/setup_64.c