Lines Matching refs:sf
259 struct new_signal_frame *sf; in do_new_sigreturn() local
265 sf = (struct new_signal_frame *) regs->u_regs [UREG_FP]; in do_new_sigreturn()
268 if (verify_area (VERIFY_READ, sf, sizeof (*sf))) in do_new_sigreturn()
271 if (((uint) sf) & 3) in do_new_sigreturn()
274 err = __get_user(pc, &sf->info.si_regs.pc); in do_new_sigreturn()
275 err |= __get_user(npc, &sf->info.si_regs.npc); in do_new_sigreturn()
282 err |= __copy_from_user(regs, &sf->info.si_regs, sizeof (struct pt_regs)); in do_new_sigreturn()
288 err |= __get_user(fpu_save, &sf->fpu_save); in do_new_sigreturn()
296 err |= __get_user(set.sig[0], &sf->info.si_mask); in do_new_sigreturn()
297 err |= __copy_from_user(&set.sig[1], &sf->extramask, in do_new_sigreturn()
378 struct rt_signal_frame *sf; in do_rt_sigreturn() local
386 sf = (struct rt_signal_frame *) regs->u_regs[UREG_FP]; in do_rt_sigreturn()
387 if(verify_area(VERIFY_READ, sf, sizeof(*sf)) || in do_rt_sigreturn()
388 (((unsigned long) sf) & 0x03)) in do_rt_sigreturn()
391 err = __get_user(pc, &sf->regs.pc); in do_rt_sigreturn()
392 err |= __get_user(npc, &sf->regs.npc); in do_rt_sigreturn()
395 err |= __get_user(regs->y, &sf->regs.y); in do_rt_sigreturn()
396 err |= __get_user(psr, &sf->regs.psr); in do_rt_sigreturn()
398 err |= __copy_from_user(®s->u_regs[UREG_G1], &sf->regs.u_regs[UREG_G1], 15*sizeof(u32)); in do_rt_sigreturn()
402 err |= __get_user(fpu_save, &sf->fpu_save); in do_rt_sigreturn()
406 err |= __copy_from_user(&set, &sf->mask, sizeof(sigset_t)); in do_rt_sigreturn()
408 err |= __copy_from_user(&st, &sf->stack, sizeof(stack_t)); in do_rt_sigreturn()
418 do_sigaltstack(&st, NULL, (unsigned long)sf); in do_rt_sigreturn()
620 struct new_signal_frame *sf; in new_setup_frame() local
630 sf = (struct new_signal_frame *)get_sigframe(&ka->sa, regs, sigframe_size); in new_setup_frame()
632 if (invalid_frame_pointer (sf, sigframe_size)) in new_setup_frame()
644 err = __copy_to_user(&sf->info.si_regs, regs, sizeof (struct pt_regs)); in new_setup_frame()
646 err |= __put_user(0, &sf->extra_size); in new_setup_frame()
649 err |= save_fpu_state(regs, &sf->fpu_state); in new_setup_frame()
650 err |= __put_user(&sf->fpu_state, &sf->fpu_save); in new_setup_frame()
652 err |= __put_user(0, &sf->fpu_save); in new_setup_frame()
655 err |= __put_user(oldset->sig[0], &sf->info.si_mask); in new_setup_frame()
656 err |= __copy_to_user(sf->extramask, &oldset->sig[1], in new_setup_frame()
658 err |= __copy_to_user(sf, (char *) regs->u_regs [UREG_FP], in new_setup_frame()
664 regs->u_regs[UREG_FP] = (unsigned long) sf; in new_setup_frame()
666 regs->u_regs[UREG_I1] = (unsigned long) &sf->info; in new_setup_frame()
667 regs->u_regs[UREG_I2] = (unsigned long) &sf->info; in new_setup_frame()
677 regs->u_regs[UREG_I7] = (unsigned long)(&(sf->insns[0]) - 2); in new_setup_frame()
680 err |= __put_user(0x821020d8, &sf->insns[0]); in new_setup_frame()
683 err |= __put_user(0x91d02010, &sf->insns[1]); in new_setup_frame()
688 flush_sig_insns(current->mm, (unsigned long) &(sf->insns[0])); in new_setup_frame()
702 struct rt_signal_frame *sf; in new_setup_rt_frame() local
711 sf = (struct rt_signal_frame *)get_sigframe(&ka->sa, regs, sigframe_size); in new_setup_rt_frame()
712 if(invalid_frame_pointer(sf, sigframe_size)) in new_setup_rt_frame()
717 err = __put_user(regs->pc, &sf->regs.pc); in new_setup_rt_frame()
718 err |= __put_user(regs->npc, &sf->regs.npc); in new_setup_rt_frame()
719 err |= __put_user(regs->y, &sf->regs.y); in new_setup_rt_frame()
723 err |= __put_user(psr, &sf->regs.psr); in new_setup_rt_frame()
724 err |= __copy_to_user(&sf->regs.u_regs, regs->u_regs, sizeof(regs->u_regs)); in new_setup_rt_frame()
725 err |= __put_user(0, &sf->extra_size); in new_setup_rt_frame()
728 err |= save_fpu_state(regs, &sf->fpu_state); in new_setup_rt_frame()
729 err |= __put_user(&sf->fpu_state, &sf->fpu_save); in new_setup_rt_frame()
731 err |= __put_user(0, &sf->fpu_save); in new_setup_rt_frame()
733 err |= __copy_to_user(&sf->mask, &oldset->sig[0], sizeof(sigset_t)); in new_setup_rt_frame()
736 err |= __put_user(current->sas_ss_sp, &sf->stack.ss_sp); in new_setup_rt_frame()
737 err |= __put_user(sas_ss_flags(regs->u_regs[UREG_FP]), &sf->stack.ss_flags); in new_setup_rt_frame()
738 err |= __put_user(current->sas_ss_size, &sf->stack.ss_size); in new_setup_rt_frame()
740 err |= __copy_to_user(sf, (char *) regs->u_regs [UREG_FP], in new_setup_rt_frame()
743 err |= copy_siginfo_to_user(&sf->info, info); in new_setup_rt_frame()
748 regs->u_regs[UREG_FP] = (unsigned long) sf; in new_setup_rt_frame()
750 regs->u_regs[UREG_I1] = (unsigned long) &sf->info; in new_setup_rt_frame()
751 regs->u_regs[UREG_I2] = (unsigned long) &sf->regs; in new_setup_rt_frame()
759 regs->u_regs[UREG_I7] = (unsigned long)(&(sf->insns[0]) - 2); in new_setup_rt_frame()
762 err |= __put_user(0x821020d8, &sf->insns[0]); in new_setup_rt_frame()
765 err |= __put_user(0x91d02010, &sf->insns[1]); in new_setup_rt_frame()
770 flush_sig_insns(current->mm, (unsigned long) &(sf->insns[0])); in new_setup_rt_frame()