Lines Matching refs:sf
85 struct signal_frame32 __user *sf; in do_sigreturn32() local
100 sf = (struct signal_frame32 __user *) regs->u_regs[UREG_FP]; in do_sigreturn32()
103 if (invalid_frame_pointer(sf, sizeof(*sf))) in do_sigreturn32()
106 if (get_user(ufp, &sf->info.si_regs.u_regs[UREG_FP])) in do_sigreturn32()
112 if (__get_user(pc, &sf->info.si_regs.pc) || in do_sigreturn32()
113 __get_user(npc, &sf->info.si_regs.npc)) in do_sigreturn32()
127 err = __get_user(regs->y, &sf->info.si_regs.y); in do_sigreturn32()
128 err |= __get_user(psr, &sf->info.si_regs.psr); in do_sigreturn32()
131 err |= __get_user(regs->u_regs[i], &sf->info.si_regs.u_regs[i]); in do_sigreturn32()
133 err |= __get_user(i, &sf->v8plus.g_upper[0]); in do_sigreturn32()
138 err |= __get_user(((u32 *)regs->u_regs)[2*i], &sf->v8plus.g_upper[i]); in do_sigreturn32()
139 err |= __get_user(asi, &sf->v8plus.asi); in do_sigreturn32()
152 err |= __get_user(fpu_save, &sf->fpu_save); in do_sigreturn32()
155 err |= __get_user(rwin_save, &sf->rwin_save); in do_sigreturn32()
160 err |= __get_user(seta.sig[0], &sf->info.si_mask); in do_sigreturn32()
161 err |= copy_from_user(&seta.sig[1], &sf->extramask, in do_sigreturn32()
176 struct rt_signal_frame32 __user *sf; in do_rt_sigreturn32() local
188 sf = (struct rt_signal_frame32 __user *) regs->u_regs[UREG_FP]; in do_rt_sigreturn32()
191 if (invalid_frame_pointer(sf, sizeof(*sf))) in do_rt_sigreturn32()
194 if (get_user(ufp, &sf->regs.u_regs[UREG_FP])) in do_rt_sigreturn32()
200 if (__get_user(pc, &sf->regs.pc) || in do_rt_sigreturn32()
201 __get_user(npc, &sf->regs.npc)) in do_rt_sigreturn32()
215 err = __get_user(regs->y, &sf->regs.y); in do_rt_sigreturn32()
216 err |= __get_user(psr, &sf->regs.psr); in do_rt_sigreturn32()
219 err |= __get_user(regs->u_regs[i], &sf->regs.u_regs[i]); in do_rt_sigreturn32()
221 err |= __get_user(i, &sf->v8plus.g_upper[0]); in do_rt_sigreturn32()
226 err |= __get_user(((u32 *)regs->u_regs)[2*i], &sf->v8plus.g_upper[i]); in do_rt_sigreturn32()
227 err |= __get_user(asi, &sf->v8plus.asi); in do_rt_sigreturn32()
240 err |= __get_user(fpu_save, &sf->fpu_save); in do_rt_sigreturn32()
243 err |= get_compat_sigset(&set, &sf->mask); in do_rt_sigreturn32()
244 err |= compat_restore_altstack(&sf->stack); in do_rt_sigreturn32()
248 err |= __get_user(rwin_save, &sf->rwin_save); in do_rt_sigreturn32()
355 struct signal_frame32 __user *sf; in setup_frame32() local
368 sigframe_size = sizeof(*sf); in setup_frame32()
374 sf = (struct signal_frame32 __user *) in setup_frame32()
377 if (invalid_frame_pointer(sf, sigframe_size)) { in setup_frame32()
380 current->comm, current->pid, (unsigned long)sf, in setup_frame32()
386 tail = (sf + 1); in setup_frame32()
393 err = put_user(regs->tpc, &sf->info.si_regs.pc); in setup_frame32()
394 err |= __put_user(regs->tnpc, &sf->info.si_regs.npc); in setup_frame32()
395 err |= __put_user(regs->y, &sf->info.si_regs.y); in setup_frame32()
399 err |= __put_user(psr, &sf->info.si_regs.psr); in setup_frame32()
401 err |= __put_user(regs->u_regs[i], &sf->info.si_regs.u_regs[i]); in setup_frame32()
402 err |= __put_user(sizeof(siginfo_extra_v8plus_t), &sf->extra_size); in setup_frame32()
403 err |= __put_user(SIGINFO_EXTRA_V8PLUS_MAGIC, &sf->v8plus.g_upper[0]); in setup_frame32()
406 &sf->v8plus.g_upper[i]); in setup_frame32()
408 &sf->v8plus.asi); in setup_frame32()
414 err |= __put_user((u64)fp, &sf->fpu_save); in setup_frame32()
416 err |= __put_user(0, &sf->fpu_save); in setup_frame32()
422 err |= __put_user((u64)rwp, &sf->rwin_save); in setup_frame32()
425 err |= __put_user(0, &sf->rwin_save); in setup_frame32()
434 err |= __put_user(seta.sig[0], &sf->info.si_mask); in setup_frame32()
435 err |= __copy_to_user(sf->extramask, &seta.sig[1], in setup_frame32()
439 err |= raw_copy_in_user((u32 __user *)sf, in setup_frame32()
447 err |= __put_user(rp->locals[i], &sf->ss.locals[i]); in setup_frame32()
449 err |= __put_user(rp->ins[i], &sf->ss.ins[i]); in setup_frame32()
450 err |= __put_user(rp->ins[6], &sf->ss.fp); in setup_frame32()
451 err |= __put_user(rp->ins[7], &sf->ss.callers_pc); in setup_frame32()
457 regs->u_regs[UREG_FP] = (unsigned long) sf; in setup_frame32()
459 regs->u_regs[UREG_I1] = (unsigned long) &sf->info; in setup_frame32()
460 regs->u_regs[UREG_I2] = (unsigned long) &sf->info; in setup_frame32()
474 unsigned long address = ((unsigned long)&(sf->insns[0])); in setup_frame32()
476 regs->u_regs[UREG_I7] = (unsigned long) (&(sf->insns[0]) - 2); in setup_frame32()
478 err = __put_user(0x821020d8, &sf->insns[0]); /*mov __NR_sigreturn, %g1*/ in setup_frame32()
479 err |= __put_user(0x91d02010, &sf->insns[1]); /*t 0x10*/ in setup_frame32()
490 struct rt_signal_frame32 __user *sf; in setup_rt_frame32() local
502 sigframe_size = sizeof(*sf); in setup_rt_frame32()
508 sf = (struct rt_signal_frame32 __user *) in setup_rt_frame32()
511 if (invalid_frame_pointer(sf, sigframe_size)) { in setup_rt_frame32()
514 current->comm, current->pid, (unsigned long)sf, in setup_rt_frame32()
520 tail = (sf + 1); in setup_rt_frame32()
527 err = put_user(regs->tpc, &sf->regs.pc); in setup_rt_frame32()
528 err |= __put_user(regs->tnpc, &sf->regs.npc); in setup_rt_frame32()
529 err |= __put_user(regs->y, &sf->regs.y); in setup_rt_frame32()
533 err |= __put_user(psr, &sf->regs.psr); in setup_rt_frame32()
535 err |= __put_user(regs->u_regs[i], &sf->regs.u_regs[i]); in setup_rt_frame32()
536 err |= __put_user(sizeof(siginfo_extra_v8plus_t), &sf->extra_size); in setup_rt_frame32()
537 err |= __put_user(SIGINFO_EXTRA_V8PLUS_MAGIC, &sf->v8plus.g_upper[0]); in setup_rt_frame32()
540 &sf->v8plus.g_upper[i]); in setup_rt_frame32()
542 &sf->v8plus.asi); in setup_rt_frame32()
548 err |= __put_user((u64)fp, &sf->fpu_save); in setup_rt_frame32()
550 err |= __put_user(0, &sf->fpu_save); in setup_rt_frame32()
556 err |= __put_user((u64)rwp, &sf->rwin_save); in setup_rt_frame32()
559 err |= __put_user(0, &sf->rwin_save); in setup_rt_frame32()
563 err |= copy_siginfo_to_user32(&sf->info, &ksig->info); in setup_rt_frame32()
566 err |= __compat_save_altstack(&sf->stack, regs->u_regs[UREG_FP]); in setup_rt_frame32()
568 err |= put_compat_sigset(&sf->mask, oldset, sizeof(compat_sigset_t)); in setup_rt_frame32()
571 err |= raw_copy_in_user((u32 __user *)sf, in setup_rt_frame32()
579 err |= __put_user(rp->locals[i], &sf->ss.locals[i]); in setup_rt_frame32()
581 err |= __put_user(rp->ins[i], &sf->ss.ins[i]); in setup_rt_frame32()
582 err |= __put_user(rp->ins[6], &sf->ss.fp); in setup_rt_frame32()
583 err |= __put_user(rp->ins[7], &sf->ss.callers_pc); in setup_rt_frame32()
589 regs->u_regs[UREG_FP] = (unsigned long) sf; in setup_rt_frame32()
591 regs->u_regs[UREG_I1] = (unsigned long) &sf->info; in setup_rt_frame32()
592 regs->u_regs[UREG_I2] = (unsigned long) &sf->regs; in setup_rt_frame32()
606 unsigned long address = ((unsigned long)&(sf->insns[0])); in setup_rt_frame32()
608 regs->u_regs[UREG_I7] = (unsigned long) (&(sf->insns[0]) - 2); in setup_rt_frame32()
611 err |= __put_user(0x82102065, &sf->insns[0]); in setup_rt_frame32()
614 err |= __put_user(0x91d02010, &sf->insns[1]); in setup_rt_frame32()