Commit 95698466 authored by Roland McGrath's avatar Roland McGrath Committed by David S. Miller

sparc64: tracehook_signal_handler

Call the standard hook after setting up signal handlers.
Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e35a8925
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <linux/tty.h> #include <linux/tty.h>
#include <linux/binfmts.h> #include <linux/binfmts.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/tracehook.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
...@@ -575,6 +576,8 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0) ...@@ -575,6 +576,8 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
* clear the TS_RESTORE_SIGMASK flag. * clear the TS_RESTORE_SIGMASK flag.
*/ */
current_thread_info()->status &= ~TS_RESTORE_SIGMASK; current_thread_info()->status &= ~TS_RESTORE_SIGMASK;
tracehook_signal_handler(signr, &info, &ka, regs, 0);
return; return;
} }
if (restart_syscall && if (restart_syscall &&
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <linux/binfmts.h> #include <linux/binfmts.h>
#include <linux/compat.h> #include <linux/compat.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/tracehook.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
...@@ -794,6 +795,8 @@ void do_signal32(sigset_t *oldset, struct pt_regs * regs, ...@@ -794,6 +795,8 @@ void do_signal32(sigset_t *oldset, struct pt_regs * regs,
* clear the TS_RESTORE_SIGMASK flag. * clear the TS_RESTORE_SIGMASK flag.
*/ */
current_thread_info()->status &= ~TS_RESTORE_SIGMASK; current_thread_info()->status &= ~TS_RESTORE_SIGMASK;
tracehook_signal_handler(signr, &info, &ka, regs, 0);
return; return;
} }
if (restart_syscall && if (restart_syscall &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment