diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-12-21 08:32:24 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-01-26 22:15:09 +1100 |
commit | 1ca9db5b6556c38aacac4c50a617aa3f7efbb306 (patch) | |
tree | e30f1cceb941cbe5688530fecbdc3eb92b65a704 /arch/powerpc/kernel/head_fsl_booke.S | |
parent | 1f1c4d0122eebd204468684f21f0270ea8a4999d (diff) | |
download | linux-stable-1ca9db5b6556c38aacac4c50a617aa3f7efbb306.tar.gz linux-stable-1ca9db5b6556c38aacac4c50a617aa3f7efbb306.tar.bz2 linux-stable-1ca9db5b6556c38aacac4c50a617aa3f7efbb306.zip |
powerpc/32: save DEAR/DAR before calling handle_page_fault
handle_page_fault() is the only function that save DAR/DEAR itself.
Save DAR/DEAR before calling handle_page_fault() to prepare for
VMAP stack which will require to save even before.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/3a4d58d378091086f00fde42b59610c80289e120.1576916812.git.christophe.leroy@c-s.fr
Diffstat (limited to 'arch/powerpc/kernel/head_fsl_booke.S')
-rw-r--r-- | arch/powerpc/kernel/head_fsl_booke.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/head_fsl_booke.S b/arch/powerpc/kernel/head_fsl_booke.S index 6f7a3a7162c5..840af004041e 100644 --- a/arch/powerpc/kernel/head_fsl_booke.S +++ b/arch/powerpc/kernel/head_fsl_booke.S @@ -378,6 +378,7 @@ interrupt_base: mfspr r4,SPRN_DEAR /* Grab the DEAR, save it, pass arg2 */ andis. r10,r5,(ESR_ILK|ESR_DLK)@h bne 1f + stw r4, _DEAR(r11) EXC_XFER_LITE(0x0300, handle_page_fault) 1: addi r3,r1,STACK_FRAME_OVERHEAD |