Searched hist:"3671 f4ebe3eb12e7222e4d7b0f94e85cfe34253a" (Results 1 – 2 of 2) sorted by relevance
/linux/arch/powerpc/include/asm/ |
H A D | debug.h | diff 3671f4ebe3eb12e7222e4d7b0f94e85cfe34253a Wed Nov 09 05:51:04 CET 2022 Jordan Niethe <jniethe5@gmail.com> powerpc: Allow clearing and restoring registers independent of saved breakpoint state
For the coming temporary mm used for instruction patching, the breakpoint registers need to be cleared to prevent them from accidentally being triggered. As soon as the patching is done, the breakpoints will be restored.
The breakpoint state is stored in the per-cpu variable current_brk[]. Add a suspend_breakpoints() function which will clear the breakpoint registers without touching the state in current_brk[]. Add a pair function restore_breakpoints() which will move the state in current_brk[] back to the registers.
Signed-off-by: Jordan Niethe <jniethe5@gmail.com> Signed-off-by: Benjamin Gray <bgray@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20221109045112.187069-2-bgray@linux.ibm.com
|
/linux/arch/powerpc/kernel/ |
H A D | process.c | diff 3671f4ebe3eb12e7222e4d7b0f94e85cfe34253a Wed Nov 09 05:51:04 CET 2022 Jordan Niethe <jniethe5@gmail.com> powerpc: Allow clearing and restoring registers independent of saved breakpoint state
For the coming temporary mm used for instruction patching, the breakpoint registers need to be cleared to prevent them from accidentally being triggered. As soon as the patching is done, the breakpoints will be restored.
The breakpoint state is stored in the per-cpu variable current_brk[]. Add a suspend_breakpoints() function which will clear the breakpoint registers without touching the state in current_brk[]. Add a pair function restore_breakpoints() which will move the state in current_brk[] back to the registers.
Signed-off-by: Jordan Niethe <jniethe5@gmail.com> Signed-off-by: Benjamin Gray <bgray@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20221109045112.187069-2-bgray@linux.ibm.com
|