powerpc: clean up pt_regs traps handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | powerpc/64s: Always has full regs, so remove remnant checksarch/ arch/ | +17 | 0 replies | |
| 2/4 | powerpc: Use SET_TRAP and avoid open-coding trap maskingarch/ arch/ arch/ +1 more | +6 | 0 replies | |
| 3/4 | powerpc: TRAP_IS_SYSCALL helper to hide syscall trap numberarch/ arch/ arch/ +2 more | +9 | 0 replies | |
| 4/4 | powerpc: Use trap metadata to prevent double restart rather than zeroing traparch/ arch/ arch/ +3 more | +194 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] powerpc: clean up pt_regs traps handling
scv support needs to test trap in some cases to distinguish sc from scv, so it helps to have a few tidy-up patches to start with. This turned into a slightly bigger job that we needed to do to clean up the double restart logic that today zeroes traps which is ugly.
Thanks,
Nick
Nicholas Piggin (4):
powerpc/64s: Always has full regs, so remove remnant checks
powerpc: Use SET_TRAP and avoid open-coding trap masking
powerpc: TRAP_IS_SYSCALL helper to hide syscall trap number
powerpc: Use trap metadata to prevent double restart rather than
zeroing trap
arch/powerpc/include/asm/ptrace.h | 31 +++- arch/powerpc/include/asm/syscall.h | 5 +- arch/powerpc/kernel/process.c | 4 +- arch/powerpc/kernel/ptrace/ptrace-tm.c | 2 +- arch/powerpc/kernel/ptrace/ptrace-view.c | 2 +- arch/powerpc/kernel/signal.c | 9 +- arch/powerpc/kernel/signal_32.c | 2 +- arch/powerpc/kernel/signal_64.c | 10 +- arch/powerpc/xmon/xmon.c | 4 +- .../testing/selftests/powerpc/signal/Makefile | 2 +- .../powerpc/signal/sig_sc_double_restart.c | 174 ++++++++++++++++++ 11 files changed, 220 insertions(+), 25 deletions(-) create mode 100644 tools/testing/selftests/powerpc/signal/sig_sc_double_restart.c
Signature · 1 line
2.23.0