diff options
| author | Jordan Niethe <[email protected]> | 2022-11-09 04:51:04 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2022-11-30 10:46:48 +0000 |
| commit | 3671f4ebe3eb12e7222e4d7b0f94e85cfe34253a (patch) | |
| tree | 606d44fbe2e07bb1682594de855651d64f885295 /arch/powerpc/lib/code-patching.c | |
| parent | powerpc/fsl-pci: Choose PCI host bridge with alias pci0 as the primary (diff) | |
| download | kernel-3671f4ebe3eb12e7222e4d7b0f94e85cfe34253a.tar.gz kernel-3671f4ebe3eb12e7222e4d7b0f94e85cfe34253a.zip | |
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 <[email protected]>
Signed-off-by: Benjamin Gray <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
