diff options
Diffstat (limited to 'arch/sparc/kernel/signal.c')
-rw-r--r-- | arch/sparc/kernel/signal.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/sparc/kernel/signal.c b/arch/sparc/kernel/signal.c index 3fd1df9f9ba7..c94f91c8b6e0 100644 --- a/arch/sparc/kernel/signal.c +++ b/arch/sparc/kernel/signal.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/smp.h> | 18 | #include <linux/smp.h> |
19 | #include <linux/binfmts.h> /* do_coredum */ | 19 | #include <linux/binfmts.h> /* do_coredum */ |
20 | #include <linux/bitops.h> | 20 | #include <linux/bitops.h> |
21 | #include <linux/tracehook.h> | ||
21 | 22 | ||
22 | #include <asm/uaccess.h> | 23 | #include <asm/uaccess.h> |
23 | #include <asm/ptrace.h> | 24 | #include <asm/ptrace.h> |
@@ -513,7 +514,7 @@ static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs, | |||
513 | * want to handle. Thus you cannot kill init even with a SIGKILL even by | 514 | * want to handle. Thus you cannot kill init even with a SIGKILL even by |
514 | * mistake. | 515 | * mistake. |
515 | */ | 516 | */ |
516 | asmlinkage void do_signal(struct pt_regs * regs, unsigned long orig_i0) | 517 | static void do_signal(struct pt_regs *regs, unsigned long orig_i0) |
517 | { | 518 | { |
518 | struct k_sigaction ka; | 519 | struct k_sigaction ka; |
519 | int restart_syscall; | 520 | int restart_syscall; |
@@ -552,6 +553,8 @@ asmlinkage void do_signal(struct pt_regs * regs, unsigned long orig_i0) | |||
552 | */ | 553 | */ |
553 | if (test_thread_flag(TIF_RESTORE_SIGMASK)) | 554 | if (test_thread_flag(TIF_RESTORE_SIGMASK)) |
554 | clear_thread_flag(TIF_RESTORE_SIGMASK); | 555 | clear_thread_flag(TIF_RESTORE_SIGMASK); |
556 | |||
557 | tracehook_signal_handler(signr, &info, &ka, regs, 0); | ||
555 | return; | 558 | return; |
556 | } | 559 | } |
557 | if (restart_syscall && | 560 | if (restart_syscall && |
@@ -579,6 +582,17 @@ asmlinkage void do_signal(struct pt_regs * regs, unsigned long orig_i0) | |||
579 | } | 582 | } |
580 | } | 583 | } |
581 | 584 | ||
585 | void do_notify_resume(struct pt_regs *regs, unsigned long orig_i0, | ||
586 | unsigned long thread_info_flags) | ||
587 | { | ||
588 | if (thread_info_flags & (_TIF_SIGPENDING | _TIF_RESTORE_SIGMASK)) | ||
589 | do_signal(regs, orig_i0); | ||
590 | if (thread_info_flags & _TIF_NOTIFY_RESUME) { | ||
591 | clear_thread_flag(TIF_NOTIFY_RESUME); | ||
592 | tracehook_notify_resume(regs); | ||
593 | } | ||
594 | } | ||
595 | |||
582 | asmlinkage int | 596 | asmlinkage int |
583 | do_sys_sigstack(struct sigstack __user *ssptr, struct sigstack __user *ossptr, | 597 | do_sys_sigstack(struct sigstack __user *ssptr, struct sigstack __user *ossptr, |
584 | unsigned long sp) | 598 | unsigned long sp) |