Lines Matching refs:ksig
248 static inline void __user *get_sigframe(struct ksignal *ksig, in get_sigframe() argument
252 unsigned long sp = sigsp(regs->sp, ksig); in get_sigframe()
270 setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs) in setup_rt_frame() argument
276 sf = get_sigframe(ksig, regs, sizeof(struct rt_sigframe)); in setup_rt_frame()
295 if (unlikely(ksig->ka.sa.sa_flags & SA_SIGINFO)) { in setup_rt_frame()
296 err |= copy_siginfo_to_user(&sf->info, &ksig->info); in setup_rt_frame()
317 regs->r0 = ksig->sig; in setup_rt_frame()
320 regs->ret = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
326 if(!(ksig->ka.sa.sa_flags & SA_RESTORER)) in setup_rt_frame()
329 regs->blink = (unsigned long)ksig->ka.sa.sa_restorer; in setup_rt_frame()
391 handle_signal(struct ksignal *ksig, struct pt_regs *regs) in handle_signal() argument
397 failed = setup_rt_frame(ksig, oldset, regs); in handle_signal()
399 signal_setup_done(failed, ksig, 0); in handle_signal()
404 struct ksignal ksig; in do_signal() local
409 if (test_thread_flag(TIF_SIGPENDING) && get_signal(&ksig)) { in do_signal()
411 arc_restart_syscall(&ksig.ka, regs); in do_signal()
414 handle_signal(&ksig, regs); in do_signal()