Lines Matching refs:ksig
300 get_sigframe(struct ksignal *ksig, struct pt_regs *regs, int framesize) in get_sigframe() argument
302 unsigned long sp = sigsp(regs->ARM_sp, ksig); in get_sigframe()
320 setup_return(struct pt_regs *regs, struct ksignal *ksig, in setup_return() argument
323 unsigned long handler = (unsigned long)ksig->ka.sa.sa_handler; in setup_return()
344 if (ksig->ka.sa.sa_flags & SA_THIRTYTWO) in setup_return()
375 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_return()
376 retcode = (unsigned long)ksig->ka.sa.sa_restorer; in setup_return()
386 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_return()
397 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_return()
434 regs->ARM_r0 = ksig->sig; in setup_return()
446 setup_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs) in setup_frame() argument
448 struct sigframe __user *frame = get_sigframe(ksig, regs, sizeof(*frame)); in setup_frame()
461 err = setup_return(regs, ksig, frame->retcode, frame); in setup_frame()
467 setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs) in setup_rt_frame() argument
469 struct rt_sigframe __user *frame = get_sigframe(ksig, regs, sizeof(*frame)); in setup_rt_frame()
475 err |= copy_siginfo_to_user(&frame->info, &ksig->info); in setup_rt_frame()
483 err = setup_return(regs, ksig, frame->sig.retcode, frame); in setup_rt_frame()
501 static void handle_signal(struct ksignal *ksig, struct pt_regs *regs) in handle_signal() argument
509 rseq_signal_deliver(ksig, regs); in handle_signal()
514 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
515 ret = setup_rt_frame(ksig, oldset, regs); in handle_signal()
517 ret = setup_frame(ksig, oldset, regs); in handle_signal()
524 signal_setup_done(ret, ksig, 0); in handle_signal()
539 struct ksignal ksig; in do_signal() local
577 if (get_signal(&ksig)) { in do_signal()
583 && !(ksig.ka.sa.sa_flags & SA_RESTART))) { in do_signal()
588 handle_signal(&ksig, regs); in do_signal()