powerpc/rtas: PACA can be restored directly from SPRG
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Mar 2022 13:50:40 +0000 (23:50 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 May 2022 13:11:27 +0000 (23:11 +1000)
commit5c86bd02b3c3ef68a109fa7e690ad62d3091f6d4
tree125548c7c002ac82fb973d2c8b5bc57a18d50b73
parentc5a65e0a420d50655bf692fc7386813683c0cd81
powerpc/rtas: PACA can be restored directly from SPRG

On 64-bit, PACA is saved in a SPRG so it does not need to be saved on
stack. We also don't need to mask off the top bits for real mode
addresses because the architecture does this for us.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Laurent Dufour <ldufour@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220308135047.478297-8-npiggin@gmail.com
arch/powerpc/kernel/rtas_entry.S