summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/ppc_save_regs.S
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2022-11-27 22:49:32 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-12-02 17:54:08 +1100
commitc03be0a3f3cc656eab5c427b78959b8f1b169a11 (patch)
treeea5a871e5ab66eb6f0d25a708e9e26206af9a692 /arch/powerpc/kernel/ppc_save_regs.S
parent37195b820d32c23bdefce3f460ed7de48a57e5e4 (diff)
powerpc: add definition for pt_regs offset within an interrupt frame
This is a common offset that currently uses the overloaded STACK_FRAME_OVERHEAD constant. It's easier to read and more flexible to use a specific regs offset for this. 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-8-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/kernel/ppc_save_regs.S')
-rw-r--r--arch/powerpc/kernel/ppc_save_regs.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/ppc_save_regs.S b/arch/powerpc/kernel/ppc_save_regs.S
index 6e86f3bf4673..49813f982468 100644
--- a/arch/powerpc/kernel/ppc_save_regs.S
+++ b/arch/powerpc/kernel/ppc_save_regs.S
@@ -22,7 +22,7 @@
*/
_GLOBAL(ppc_save_regs)
/* This allows stack frame accessor macros and offsets to be used */
- subi r3,r3,STACK_FRAME_OVERHEAD
+ subi r3,r3,STACK_INT_FRAME_REGS
PPC_STL r0,GPR0(r3)
#ifdef CONFIG_PPC32
stmw r2,GPR2(r3)