]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: don't set boot CPU's r13 to paca until the structure is set up
authorNicholas Piggin <npiggin@gmail.com>
Mon, 26 Sep 2022 05:56:19 +0000 (15:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:13 +0000 (19:22 +1000)
commit80b021a2c05140e74687bd68864ef081d3e3202c
tree496c80e91587161da012ea462d205f707b08736a
parent3d5e6e6f686005a9b102fe7b5839d44a208fbb3e
powerpc/64: don't set boot CPU's r13 to paca until the structure is set up

The idea is to get to the point where if r13 is non-zero, then it should
contain a reasonable paca. This can be used in early boot program check
and machine check handlers to avoid running off into the weeds if they
hit before r13 has a paca.

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-5-npiggin@gmail.com
arch/powerpc/kernel/setup_64.c