diff options
author | 2021-03-12 12:50:36 +0000 | |
---|---|---|
committer | 2021-03-29 13:22:08 +1100 | |
commit | e72915560b15f58c2ffe08144d9a7163daa18db4 (patch) | |
tree | 1de6b15d58eb972d5aa3ac8e4920eef4ca40d5b1 /arch/powerpc/kernel/head_fsl_booke.S | |
parent | powerpc/32: Don't save thread.regs on interrupt entry (diff) | |
download | linux-e72915560b15f58c2ffe08144d9a7163daa18db4.tar.gz linux-e72915560b15f58c2ffe08144d9a7163daa18db4.tar.bz2 linux-e72915560b15f58c2ffe08144d9a7163daa18db4.zip |
powerpc/32: Set regs parameter in r3 in transfer_to_handler
All exception handlers take regs as first parameter.
Instead of setting r3 just before each call to a handler, set
it in transfer_to_handler.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/f994a379bb895a2cbd518cb82460ad3f3d3ccdf5.1615552867.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/kernel/head_fsl_booke.S')
-rw-r--r-- | arch/powerpc/kernel/head_fsl_booke.S | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/head_fsl_booke.S b/arch/powerpc/kernel/head_fsl_booke.S index 3f4a40cccef5..f51c66f747ad 100644 --- a/arch/powerpc/kernel/head_fsl_booke.S +++ b/arch/powerpc/kernel/head_fsl_booke.S @@ -372,7 +372,6 @@ interrupt_base: bne 1f EXC_XFER_LITE(0x0300, handle_page_fault) 1: - addi r3,r1,STACK_FRAME_OVERHEAD EXC_XFER_LITE(0x0300, CacheLockingException) /* Instruction Storage Interrupt */ @@ -618,8 +617,7 @@ END_BTB_FLUSH_SECTION beq 1f bl load_up_spe b fast_exception_return -1: addi r3,r1,STACK_FRAME_OVERHEAD - EXC_XFER_LITE(0x2010, KernelSPE) +1: EXC_XFER_LITE(0x2010, KernelSPE) #elif defined(CONFIG_SPE_POSSIBLE) EXCEPTION(0x2020, SPE_UNAVAIL, SPEUnavailable, \ unknown_exception, EXC_XFER_STD) |