powerpc: add a define for the switch frame size and regs offset
authorNicholas Piggin <npiggin@gmail.com>
Sun, 27 Nov 2022 12:49:36 +0000 (22:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 06:54:08 +0000 (17:54 +1100)
commit6f291a03819e4051ebc870471d26915ef2e6ba31
tree4d30df1db1b8290dbfe1216694dfaf34e9c4d1e5
parent1223e5a20f7fb3c31c91a328d1a04ed26d5e889b
powerpc: add a define for the switch frame size and regs offset

This is open-coded in process.c, ppc32 uses a different define with the
same value, and the C definition is name differently which makes it an
extra indirection to grep for.

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-12-npiggin@gmail.com
arch/powerpc/include/asm/ptrace.h
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/process.c