Lines Matching refs:ksig
369 static int setup_rt_frame(struct ksignal *ksig, sigset_t *set, in setup_rt_frame() argument
388 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_rt_frame()
398 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
399 restorer = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
408 if (copy_siginfo_to_user(&frame->info, &ksig->info)) in setup_rt_frame()
430 regs->psw.addr = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
432 regs->gprs[2] = ksig->sig; in setup_rt_frame()
439 static void handle_signal(struct ksignal *ksig, sigset_t *oldset, in handle_signal() argument
445 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
446 ret = setup_rt_frame(ksig, oldset, regs); in handle_signal()
448 ret = setup_frame(ksig->sig, &ksig->ka, oldset, regs); in handle_signal()
450 signal_setup_done(ret, ksig, test_thread_flag(TIF_SINGLE_STEP)); in handle_signal()
464 struct ksignal ksig; in do_signal() local
475 if (get_signal(&ksig)) { in do_signal()
486 if (!(ksig.ka.sa.sa_flags & SA_RESTART)) { in do_signal()
501 rseq_signal_deliver(&ksig, regs); in do_signal()
503 handle_signal32(&ksig, oldset, regs); in do_signal()
505 handle_signal(&ksig, oldset, regs); in do_signal()