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)
commit519b2e317e39ac99ce589a7c8480c47a17d62638
tree496c80e91587161da012ea462d205f707b08736a
parentb830c8754e046f96e84da9d3b3e028c4ceef2b18
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