powerpc: simplify ppc_save_regs
authorNicholas Piggin <npiggin@gmail.com>
Sun, 27 Nov 2022 12:49:31 +0000 (22:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 06:54:08 +0000 (17:54 +1100)
commit37195b820d32c23bdefce3f460ed7de48a57e5e4
tree59f376b20fdf7de395e034b0b836d2ef1faa24b7
parentbaa49d81a94bb4170e7f2f4d97016772117d0f60
powerpc: simplify ppc_save_regs

Adjust the pt_regs pointer so the interrupt frame offsets can be used
to save registers.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221127124942.1665522-7-npiggin@gmail.com
arch/powerpc/kernel/ppc_save_regs.S