6 #include <linux/module.h>
7 #include <linux/ptrace.h>
8 #include <linux/sched.h>
9 #include <asm/siginfo.h>
10 #include <asm/signal.h>
11 #include <asm/unistd.h>
21 static void handle_signal(
struct pt_regs *
regs,
unsigned long signr,
24 sigset_t *oldset = sigmask_to_save();
55 if ((ka->
sa.sa_flags &
SA_ONSTACK) && (sas_ss_flags(sp) == 0))
58 #ifdef CONFIG_ARCH_HAS_SC_SIGNALS
71 static int kern_do_signal(
struct pt_regs *regs)
75 int sig, handled_sig = 0;
80 handle_signal(regs, sig, &ka_copy, &info);
109 current->thread.singlestep_syscall =
117 restore_saved_sigmask();
123 return kern_do_signal(&
current->thread.regs);
132 siginitset(&blocked, mask);