diff options
Diffstat (limited to 'arch/sparc64/kernel/signal.c')
| -rw-r--r-- | arch/sparc64/kernel/signal.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/signal.c b/arch/sparc64/kernel/signal.c index 9667e96fd513..d1b84456a9ee 100644 --- a/arch/sparc64/kernel/signal.c +++ b/arch/sparc64/kernel/signal.c | |||
| @@ -17,11 +17,13 @@ | |||
| 17 | #include <linux/errno.h> | 17 | #include <linux/errno.h> |
| 18 | #include <linux/wait.h> | 18 | #include <linux/wait.h> |
| 19 | #include <linux/ptrace.h> | 19 | #include <linux/ptrace.h> |
| 20 | #include <linux/tracehook.h> | ||
| 20 | #include <linux/unistd.h> | 21 | #include <linux/unistd.h> |
| 21 | #include <linux/mm.h> | 22 | #include <linux/mm.h> |
| 22 | #include <linux/tty.h> | 23 | #include <linux/tty.h> |
| 23 | #include <linux/binfmts.h> | 24 | #include <linux/binfmts.h> |
| 24 | #include <linux/bitops.h> | 25 | #include <linux/bitops.h> |
| 26 | #include <linux/tracehook.h> | ||
| 25 | 27 | ||
| 26 | #include <asm/uaccess.h> | 28 | #include <asm/uaccess.h> |
| 27 | #include <asm/ptrace.h> | 29 | #include <asm/ptrace.h> |
| @@ -574,6 +576,8 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0) | |||
| 574 | * clear the TS_RESTORE_SIGMASK flag. | 576 | * clear the TS_RESTORE_SIGMASK flag. |
| 575 | */ | 577 | */ |
| 576 | current_thread_info()->status &= ~TS_RESTORE_SIGMASK; | 578 | current_thread_info()->status &= ~TS_RESTORE_SIGMASK; |
| 579 | |||
| 580 | tracehook_signal_handler(signr, &info, &ka, regs, 0); | ||
| 577 | return; | 581 | return; |
| 578 | } | 582 | } |
| 579 | if (restart_syscall && | 583 | if (restart_syscall && |
| @@ -605,4 +609,8 @@ void do_notify_resume(struct pt_regs *regs, unsigned long orig_i0, unsigned long | |||
| 605 | { | 609 | { |
| 606 | if (thread_info_flags & _TIF_SIGPENDING) | 610 | if (thread_info_flags & _TIF_SIGPENDING) |
| 607 | do_signal(regs, orig_i0); | 611 | do_signal(regs, orig_i0); |
| 612 | if (thread_info_flags & _TIF_NOTIFY_RESUME) { | ||
| 613 | clear_thread_flag(TIF_NOTIFY_RESUME); | ||
| 614 | tracehook_notify_resume(regs); | ||
| 615 | } | ||
| 608 | } | 616 | } |
