Lines Matching refs:sf
115 struct signal_frame __user *sf;
126 sf = (struct signal_frame __user *) regs->u_regs[UREG_FP];
129 if (!access_ok(VERIFY_READ, sf, sizeof(*sf)))
132 if (((unsigned long) sf) & 3)
135 err = __get_user(pc, &sf->info.si_regs.pc);
136 err |= __get_user(npc, &sf->info.si_regs.npc);
143 err |= __copy_from_user(regs, &sf->info.si_regs, sizeof(struct pt_regs));
152 err |= __get_user(fpu_save, &sf->fpu_save);
160 err |= __get_user(set.sig[0], &sf->info.si_mask);
161 err |= __copy_from_user(&set.sig[1], &sf->extramask,
180 struct rt_signal_frame __user *sf;
189 sf = (struct rt_signal_frame __user *) regs->u_regs[UREG_FP];
190 if (!access_ok(VERIFY_READ, sf, sizeof(*sf)) ||
191 (((unsigned long) sf) & 0x03))
194 err = __get_user(pc, &sf->regs.pc);
195 err |= __get_user(npc, &sf->regs.npc);
198 err |= __get_user(regs->y, &sf->regs.y);
199 err |= __get_user(psr, &sf->regs.psr);
202 &sf->regs.u_regs[UREG_G1], 15 * sizeof(u32));
209 err |= __get_user(fpu_save, &sf->fpu_save);
213 err |= __copy_from_user(&set, &sf->mask, sizeof(sigset_t));
215 err |= __copy_from_user(&st, &sf->stack, sizeof(stack_t));
228 do_sigaltstack((const stack_t __user *) &st, NULL, (unsigned long)sf);
321 struct signal_frame __user *sf;
331 sf = (struct signal_frame __user *)
334 if (invalid_frame_pointer(sf, sigframe_size))
341 err = __copy_to_user(&sf->info.si_regs, regs, sizeof(struct pt_regs));
343 err |= __put_user(0, &sf->extra_size);
346 err |= save_fpu_state(regs, &sf->fpu_state);
347 err |= __put_user(&sf->fpu_state, &sf->fpu_save);
349 err |= __put_user(0, &sf->fpu_save);
352 err |= __put_user(oldset->sig[0], &sf->info.si_mask);
353 err |= __copy_to_user(sf->extramask, &oldset->sig[1],
355 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP],
361 regs->u_regs[UREG_FP] = (unsigned long) sf;
363 regs->u_regs[UREG_I1] = (unsigned long) &sf->info;
364 regs->u_regs[UREG_I2] = (unsigned long) &sf->info;
374 regs->u_regs[UREG_I7] = (unsigned long)(&(sf->insns[0]) - 2);
377 err |= __put_user(0x821020d8, &sf->insns[0]);
380 err |= __put_user(0x91d02010, &sf->insns[1]);
385 flush_sig_insns(current->mm, (unsigned long) &(sf->insns[0]));
401 struct rt_signal_frame __user *sf;
410 sf = (struct rt_signal_frame __user *)
412 if (invalid_frame_pointer(sf, sigframe_size))
417 err = __put_user(regs->pc, &sf->regs.pc);
418 err |= __put_user(regs->npc, &sf->regs.npc);
419 err |= __put_user(regs->y, &sf->regs.y);
423 err |= __put_user(psr, &sf->regs.psr);
424 err |= __copy_to_user(&sf->regs.u_regs, regs->u_regs, sizeof(regs->u_regs));
425 err |= __put_user(0, &sf->extra_size);
428 err |= save_fpu_state(regs, &sf->fpu_state);
429 err |= __put_user(&sf->fpu_state, &sf->fpu_save);
431 err |= __put_user(0, &sf->fpu_save);
433 err |= __copy_to_user(&sf->mask, &oldset->sig[0], sizeof(sigset_t));
436 err |= __put_user(current->sas_ss_sp, &sf->stack.ss_sp);
437 err |= __put_user(sas_ss_flags(regs->u_regs[UREG_FP]), &sf->stack.ss_flags);
438 err |= __put_user(current->sas_ss_size, &sf->stack.ss_size);
440 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP],
443 err |= copy_siginfo_to_user(&sf->info, info);
448 regs->u_regs[UREG_FP] = (unsigned long) sf;
450 regs->u_regs[UREG_I1] = (unsigned long) &sf->info;
451 regs->u_regs[UREG_I2] = (unsigned long) &sf->regs;
459 regs->u_regs[UREG_I7] = (unsigned long)(&(sf->insns[0]) - 2);
462 err |= __put_user(0x821020d8, &sf->insns[0]);
465 err |= __put_user(0x91d02010, &sf->insns[1]);
470 flush_sig_insns(current->mm, (unsigned long) &(sf->insns[0]));