diff options
author | Christophe Leroy <[email protected]> | 2021-03-12 12:50:19 +0000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2021-03-29 13:22:04 +1100 |
commit | 79f4bb17f18162dd95d6aeb6dc3b7da54d6139aa (patch) | |
tree | 22cac6e15631b112c308e4b436510719ea184a5c /arch/powerpc/include/asm/interrupt.h | |
parent | f93d866e14b746112fb29d69197dd83075bbd28c (diff) |
powerpc/32: Handle bookE debugging in C in exception entry
The handling of SPRN_DBCR0 and other registers can easily
be done in C instead of ASM.
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/6d6b2497115890b90cfa72a2b3ab1da5f78123c2.1615552866.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/include/asm/interrupt.h')
-rw-r--r-- | arch/powerpc/include/asm/interrupt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/interrupt.h b/arch/powerpc/include/asm/interrupt.h index c35368adbe71..861e6eadc98c 100644 --- a/arch/powerpc/include/asm/interrupt.h +++ b/arch/powerpc/include/asm/interrupt.h @@ -65,6 +65,8 @@ static inline void interrupt_enter_prepare(struct pt_regs *regs, struct interrup if (user_mode(regs)) account_cpu_user_entry(); #endif + + booke_restore_dbcr0(); } /* |