Lines Matching refs:ksig
365 static int setup_rt_frame(struct ksignal *ksig, sigset_t *set, in setup_rt_frame() argument
384 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_rt_frame()
394 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_rt_frame()
395 restorer = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
400 if (copy_siginfo_to_user(&frame->info, &ksig->info)) in setup_rt_frame()
422 regs->psw.addr = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
424 regs->gprs[2] = ksig->sig; in setup_rt_frame()
431 static void handle_signal(struct ksignal *ksig, sigset_t *oldset, in handle_signal() argument
437 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
438 ret = setup_rt_frame(ksig, oldset, regs); in handle_signal()
440 ret = setup_frame(ksig->sig, &ksig->ka, oldset, regs); in handle_signal()
442 signal_setup_done(ret, ksig, test_thread_flag(TIF_SINGLE_STEP)); in handle_signal()
457 struct ksignal ksig; in arch_do_signal_or_restart() local
468 if (get_signal(&ksig)) { in arch_do_signal_or_restart()
479 if (!(ksig.ka.sa.sa_flags & SA_RESTART)) { in arch_do_signal_or_restart()
495 rseq_signal_deliver(&ksig, regs); in arch_do_signal_or_restart()
497 handle_signal32(&ksig, oldset, regs); in arch_do_signal_or_restart()
499 handle_signal(&ksig, oldset, regs); in arch_do_signal_or_restart()