Lines Matching refs:ksig
151 static inline void __user *get_sigframe(struct ksignal *ksig, in get_sigframe() argument
166 sp = sigsp(sp, ksig) - framesize; in get_sigframe()
174 static int setup_rt_frame(struct ksignal *ksig, sigset_t *set, in setup_rt_frame() argument
180 frame = get_sigframe(ksig, regs, sizeof(*frame)); in setup_rt_frame()
184 err |= copy_siginfo_to_user(&frame->info, &ksig->info); in setup_rt_frame()
217 regs->epc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
219 regs->a0 = ksig->sig; /* a0: signal number */ in setup_rt_frame()
225 current->comm, task_pid_nr(current), ksig->sig, in setup_rt_frame()
232 static void handle_signal(struct ksignal *ksig, struct pt_regs *regs) in handle_signal() argument
249 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
262 ret = setup_rt_frame(ksig, oldset, regs); in handle_signal()
264 signal_setup_done(ret, ksig, 0); in handle_signal()
269 struct ksignal ksig; in do_signal() local
271 if (get_signal(&ksig)) { in do_signal()
273 handle_signal(&ksig, regs); in do_signal()