Lines Matching refs:sf
216 struct signal_frame32 __user *sf;
229 sf = (struct signal_frame32 __user *) regs->u_regs[UREG_FP];
232 if (!access_ok(VERIFY_READ, sf, sizeof(*sf)) ||
233 (((unsigned long) sf) & 3))
236 get_user(pc, &sf->info.si_regs.pc);
237 __get_user(npc, &sf->info.si_regs.npc);
250 err = __get_user(regs->y, &sf->info.si_regs.y);
251 err |= __get_user(psr, &sf->info.si_regs.psr);
254 err |= __get_user(regs->u_regs[i], &sf->info.si_regs.u_regs[i]);
256 err |= __get_user(i, &sf->v8plus.g_upper[0]);
261 err |= __get_user(((u32 *)regs->u_regs)[2*i], &sf->v8plus.g_upper[i]);
262 err |= __get_user(asi, &sf->v8plus.asi);
275 err |= __get_user(fpu_save, &sf->fpu_save);
277 err |= restore_fpu_state32(regs, &sf->fpu_state);
278 err |= __get_user(seta[0], &sf->info.si_mask);
279 err |= copy_from_user(seta+1, &sf->extramask,
302 struct rt_signal_frame32 __user *sf;
315 sf = (struct rt_signal_frame32 __user *) regs->u_regs[UREG_FP];
318 if (!access_ok(VERIFY_READ, sf, sizeof(*sf)) ||
319 (((unsigned long) sf) & 3))
322 get_user(pc, &sf->regs.pc);
323 __get_user(npc, &sf->regs.npc);
336 err = __get_user(regs->y, &sf->regs.y);
337 err |= __get_user(psr, &sf->regs.psr);
340 err |= __get_user(regs->u_regs[i], &sf->regs.u_regs[i]);
342 err |= __get_user(i, &sf->v8plus.g_upper[0]);
347 err |= __get_user(((u32 *)regs->u_regs)[2*i], &sf->v8plus.g_upper[i]);
348 err |= __get_user(asi, &sf->v8plus.asi);
361 err |= __get_user(fpu_save, &sf->fpu_save);
363 err |= restore_fpu_state32(regs, &sf->fpu_state);
364 err |= copy_from_user(&seta, &sf->mask, sizeof(compat_sigset_t));
365 err |= __get_user(u_ss_sp, &sf->stack.ss_sp);
367 err |= __get_user(st.ss_flags, &sf->stack.ss_flags);
368 err |= __get_user(st.ss_size, &sf->stack.ss_size);
376 do_sigaltstack((stack_t __user *) &st, NULL, (unsigned long)sf);
517 struct signal_frame32 __user *sf;
531 sf = (struct signal_frame32 __user *)
534 if (invalid_frame_pointer(sf, sigframe_size))
545 err = put_user(regs->tpc, &sf->info.si_regs.pc);
546 err |= __put_user(regs->tnpc, &sf->info.si_regs.npc);
547 err |= __put_user(regs->y, &sf->info.si_regs.y);
551 err |= __put_user(psr, &sf->info.si_regs.psr);
553 err |= __put_user(regs->u_regs[i], &sf->info.si_regs.u_regs[i]);
554 err |= __put_user(sizeof(siginfo_extra_v8plus_t), &sf->extra_size);
555 err |= __put_user(SIGINFO_EXTRA_V8PLUS_MAGIC, &sf->v8plus.g_upper[0]);
558 &sf->v8plus.g_upper[i]);
560 &sf->v8plus.asi);
563 err |= save_fpu_state32(regs, &sf->fpu_state);
564 err |= __put_user((u64)&sf->fpu_state, &sf->fpu_save);
566 err |= __put_user(0, &sf->fpu_save);
579 err |= __put_user(seta[0], &sf->info.si_mask);
580 err |= __copy_to_user(sf->extramask, seta + 1,
583 err |= copy_in_user((u32 __user *)sf,
591 regs->u_regs[UREG_FP] = (unsigned long) sf;
593 regs->u_regs[UREG_I1] = (unsigned long) &sf->info;
594 regs->u_regs[UREG_I2] = (unsigned long) &sf->info;
608 unsigned long address = ((unsigned long)&(sf->insns[0]));
610 regs->u_regs[UREG_I7] = (unsigned long) (&(sf->insns[0]) - 2);
612 err = __put_user(0x821020d8, &sf->insns[0]); /*mov __NR_sigreturn, %g1*/
613 err |= __put_user(0x91d02010, &sf->insns[1]); /*t 0x10*/
634 struct rt_signal_frame32 __user *sf;
648 sf = (struct rt_signal_frame32 __user *)
651 if (invalid_frame_pointer(sf, sigframe_size))
662 err = put_user(regs->tpc, &sf->regs.pc);
663 err |= __put_user(regs->tnpc, &sf->regs.npc);
664 err |= __put_user(regs->y, &sf->regs.y);
668 err |= __put_user(psr, &sf->regs.psr);
670 err |= __put_user(regs->u_regs[i], &sf->regs.u_regs[i]);
671 err |= __put_user(sizeof(siginfo_extra_v8plus_t), &sf->extra_size);
672 err |= __put_user(SIGINFO_EXTRA_V8PLUS_MAGIC, &sf->v8plus.g_upper[0]);
675 &sf->v8plus.g_upper[i]);
677 &sf->v8plus.asi);
680 err |= save_fpu_state32(regs, &sf->fpu_state);
681 err |= __put_user((u64)&sf->fpu_state, &sf->fpu_save);
683 err |= __put_user(0, &sf->fpu_save);
687 err |= copy_siginfo_to_user32(&sf->info, info);
690 err |= __put_user(current->sas_ss_sp, &sf->stack.ss_sp);
691 err |= __put_user(sas_ss_flags(regs->u_regs[UREG_FP]), &sf->stack.ss_flags);
692 err |= __put_user(current->sas_ss_size, &sf->stack.ss_size);
704 err |= __copy_to_user(&sf->mask, &seta, sizeof(compat_sigset_t));
706 err |= copy_in_user((u32 __user *)sf,
713 regs->u_regs[UREG_FP] = (unsigned long) sf;
715 regs->u_regs[UREG_I1] = (unsigned long) &sf->info;
716 regs->u_regs[UREG_I2] = (unsigned long) &sf->regs;
730 unsigned long address = ((unsigned long)&(sf->insns[0]));
732 regs->u_regs[UREG_I7] = (unsigned long) (&(sf->insns[0]) - 2);
735 err |= __put_user(0x82102065, &sf->insns[0]);
738 err |= __put_user(0x91d02010, &sf->insns[1]);