Lines Matching refs:ksig

200 static inline void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs, unsigned long f…  in get_sigframe()  argument
212 sp = sigsp(sp, ksig) - framesize; in get_sigframe()
225 static int setup_frame(struct ksignal *ksig, struct pt_regs *regs, in setup_frame() argument
244 get_sigframe(ksig, regs, sigframe_size); in setup_frame()
292 regs->u_regs[UREG_I0] = ksig->sig; in setup_frame()
297 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame()
301 if (ksig->ka.ka_restorer) in setup_frame()
302 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_frame()
320 static int setup_rt_frame(struct ksignal *ksig, struct pt_regs *regs, in setup_rt_frame() argument
337 get_sigframe(ksig, regs, sigframe_size); in setup_rt_frame()
385 err |= copy_siginfo_to_user(&sf->info, &ksig->info); in setup_rt_frame()
391 regs->u_regs[UREG_I0] = ksig->sig; in setup_rt_frame()
395 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
398 if (ksig->ka.ka_restorer) in setup_rt_frame()
399 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_rt_frame()
418 handle_signal(struct ksignal *ksig, struct pt_regs *regs) in handle_signal() argument
423 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
424 err = setup_rt_frame(ksig, regs, oldset); in handle_signal()
426 err = setup_frame(ksig, regs, oldset); in handle_signal()
427 signal_setup_done(err, ksig, 0); in handle_signal()
457 struct ksignal ksig; in do_signal() local
482 has_handler = get_signal(&ksig); in do_signal()
496 syscall_restart(orig_i0, regs, &ksig.ka.sa); in do_signal()
497 handle_signal(&ksig, regs); in do_signal()