linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] powerpc: clean up pt_regs traps handling
@ 2020-04-21  2:19 Nicholas Piggin
  2020-04-21  2:19 ` [PATCH 1/4] powerpc/64s: Always has full regs, so remove remnant checks Nicholas Piggin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Nicholas Piggin @ 2020-04-21  2:19 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Nicholas Piggin

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

-- 
2.23.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-21  2:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-21  2:19 [PATCH 0/4] powerpc: clean up pt_regs traps handling Nicholas Piggin
2020-04-21  2:19 ` [PATCH 1/4] powerpc/64s: Always has full regs, so remove remnant checks Nicholas Piggin
2020-04-21  2:19 ` [PATCH 2/4] powerpc: Use SET_TRAP and avoid open-coding trap masking Nicholas Piggin
2020-04-21  2:19 ` [PATCH 3/4] powerpc: TRAP_IS_SYSCALL helper to hide syscall trap number Nicholas Piggin
2020-04-21  2:19 ` [PATCH 4/4] powerpc: Use trap metadata to prevent double restart rather than zeroing trap Nicholas Piggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).