]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32: Handle bookE debugging in C in syscall entry/exit
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 9 Feb 2021 19:29:28 +0000 (19:29 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 11 Feb 2021 12:35:12 +0000 (23:35 +1100)
commitd524dda719f06967db4d3ba519edf9267f84c155
tree91120a551f132ba10a5a711b2a01bc452d7380af
parentb966f2279048ee9f30d83ef8568b99fa40917c54
powerpc/32: Handle bookE debugging in C in syscall entry/exit

The handling of SPRN_DBCR0 and other registers can easily
be done in C instead of ASM.

For that, create booke_load_dbcr0() and booke_restore_dbcr0().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1a7515f9258b27a9177de88491a8bb79b255ceb7.1612898425.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/interrupt.h
arch/powerpc/include/asm/reg_booke.h
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/head_32.h
arch/powerpc/kernel/head_booke.h
arch/powerpc/kernel/interrupt.c