Lines Matching refs:ksig

266 static int setup_frame(struct ksignal *ksig, sigset_t *set,  in setup_frame()  argument
270 int err = 0, sig = ksig->sig; in setup_frame()
272 frame = get_sigframe(&ksig->ka, regs->regs[15], sizeof(*frame)); in setup_frame()
285 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
286 regs->pr = (unsigned long) ksig->ka.sa.sa_restorer; in setup_frame()
316 (struct fdpic_func_descriptor __user *)ksig->ka.sa.sa_handler; in setup_frame()
321 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_frame()
332 static int setup_rt_frame(struct ksignal *ksig, sigset_t *set, in setup_rt_frame() argument
336 int err = 0, sig = ksig->sig; in setup_rt_frame()
338 frame = get_sigframe(&ksig->ka, regs->regs[15], sizeof(*frame)); in setup_rt_frame()
343 err |= copy_siginfo_to_user(&frame->info, &ksig->info); in setup_rt_frame()
355 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
356 regs->pr = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
386 (struct fdpic_func_descriptor __user *)ksig->ka.sa.sa_handler; in setup_rt_frame()
391 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
433 handle_signal(struct ksignal *ksig, struct pt_regs *regs, unsigned int save_r0) in handle_signal() argument
439 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
440 ret = setup_rt_frame(ksig, oldset, regs); in handle_signal()
442 ret = setup_frame(ksig, oldset, regs); in handle_signal()
444 signal_setup_done(ret, ksig, test_thread_flag(TIF_SINGLESTEP)); in handle_signal()
458 struct ksignal ksig; in do_signal() local
469 if (get_signal(&ksig)) { in do_signal()
470 handle_syscall_restart(save_r0, regs, &ksig.ka.sa); in do_signal()
473 handle_signal(&ksig, regs, save_r0); in do_signal()