Lines Matching refs:sf

77 	struct signal_frame __user *sf;  in do_sigreturn()  local
88 sf = (struct signal_frame __user *) regs->u_regs[UREG_FP]; in do_sigreturn()
91 if (invalid_frame_pointer(sf, sizeof(*sf))) in do_sigreturn()
94 if (get_user(ufp, &sf->info.si_regs.u_regs[UREG_FP])) in do_sigreturn()
100 err = __get_user(pc, &sf->info.si_regs.pc); in do_sigreturn()
101 err |= __get_user(npc, &sf->info.si_regs.npc); in do_sigreturn()
108 err |= __copy_from_user(regs, &sf->info.si_regs, sizeof(struct pt_regs)); in do_sigreturn()
117 err |= __get_user(fpu_save, &sf->fpu_save); in do_sigreturn()
120 err |= __get_user(rwin_save, &sf->rwin_save); in do_sigreturn()
127 err |= __get_user(set.sig[0], &sf->info.si_mask); in do_sigreturn()
128 err |= __copy_from_user(&set.sig[1], &sf->extramask, in do_sigreturn()
143 struct rt_signal_frame __user *sf; in do_rt_sigreturn() local
151 sf = (struct rt_signal_frame __user *) regs->u_regs[UREG_FP]; in do_rt_sigreturn()
152 if (invalid_frame_pointer(sf, sizeof(*sf))) in do_rt_sigreturn()
155 if (get_user(ufp, &sf->regs.u_regs[UREG_FP])) in do_rt_sigreturn()
161 err = __get_user(pc, &sf->regs.pc); in do_rt_sigreturn()
162 err |= __get_user(npc, &sf->regs.npc); in do_rt_sigreturn()
165 err |= __get_user(regs->y, &sf->regs.y); in do_rt_sigreturn()
166 err |= __get_user(psr, &sf->regs.psr); in do_rt_sigreturn()
169 &sf->regs.u_regs[UREG_G1], 15 * sizeof(u32)); in do_rt_sigreturn()
176 err |= __get_user(fpu_save, &sf->fpu_save); in do_rt_sigreturn()
179 err |= __copy_from_user(&set, &sf->mask, sizeof(sigset_t)); in do_rt_sigreturn()
180 err |= restore_altstack(&sf->stack); in do_rt_sigreturn()
188 err |= __get_user(rwin_save, &sf->rwin_save); in do_rt_sigreturn()
228 struct signal_frame __user *sf; in setup_frame() local
237 sigframe_size = sizeof(*sf); in setup_frame()
243 sf = (struct signal_frame __user *) in setup_frame()
246 if (invalid_frame_pointer(sf, sigframe_size)) { in setup_frame()
251 tail = sf + 1; in setup_frame()
254 err = __copy_to_user(&sf->info.si_regs, regs, sizeof(struct pt_regs)); in setup_frame()
256 err |= __put_user(0, &sf->extra_size); in setup_frame()
262 err |= __put_user(fp, &sf->fpu_save); in setup_frame()
264 err |= __put_user(0, &sf->fpu_save); in setup_frame()
270 err |= __put_user(rwp, &sf->rwin_save); in setup_frame()
272 err |= __put_user(0, &sf->rwin_save); in setup_frame()
275 err |= __put_user(oldset->sig[0], &sf->info.si_mask); in setup_frame()
276 err |= __copy_to_user(sf->extramask, &oldset->sig[1], in setup_frame()
279 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP], in setup_frame()
285 err |= __copy_to_user(sf, rp, sizeof(struct reg_window32)); in setup_frame()
291 regs->u_regs[UREG_FP] = (unsigned long) sf; in setup_frame()
293 regs->u_regs[UREG_I1] = (unsigned long) &sf->info; in setup_frame()
294 regs->u_regs[UREG_I2] = (unsigned long) &sf->info; in setup_frame()
304 regs->u_regs[UREG_I7] = (unsigned long)(&(sf->insns[0]) - 2); in setup_frame()
307 err |= __put_user(0x821020d8, &sf->insns[0]); in setup_frame()
310 err |= __put_user(0x91d02010, &sf->insns[1]); in setup_frame()
315 flush_sig_insns(current->mm, (unsigned long) &(sf->insns[0])); in setup_frame()
323 struct rt_signal_frame __user *sf; in setup_rt_frame() local
331 sigframe_size = sizeof(*sf); in setup_rt_frame()
336 sf = (struct rt_signal_frame __user *) in setup_rt_frame()
338 if (invalid_frame_pointer(sf, sigframe_size)) { in setup_rt_frame()
343 tail = sf + 1; in setup_rt_frame()
344 err = __put_user(regs->pc, &sf->regs.pc); in setup_rt_frame()
345 err |= __put_user(regs->npc, &sf->regs.npc); in setup_rt_frame()
346 err |= __put_user(regs->y, &sf->regs.y); in setup_rt_frame()
350 err |= __put_user(psr, &sf->regs.psr); in setup_rt_frame()
351 err |= __copy_to_user(&sf->regs.u_regs, regs->u_regs, sizeof(regs->u_regs)); in setup_rt_frame()
352 err |= __put_user(0, &sf->extra_size); in setup_rt_frame()
358 err |= __put_user(fp, &sf->fpu_save); in setup_rt_frame()
360 err |= __put_user(0, &sf->fpu_save); in setup_rt_frame()
366 err |= __put_user(rwp, &sf->rwin_save); in setup_rt_frame()
368 err |= __put_user(0, &sf->rwin_save); in setup_rt_frame()
370 err |= __copy_to_user(&sf->mask, &oldset->sig[0], sizeof(sigset_t)); in setup_rt_frame()
373 err |= __save_altstack(&sf->stack, regs->u_regs[UREG_FP]); in setup_rt_frame()
376 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP], in setup_rt_frame()
382 err |= __copy_to_user(sf, rp, sizeof(struct reg_window32)); in setup_rt_frame()
385 err |= copy_siginfo_to_user(&sf->info, &ksig->info); in setup_rt_frame()
390 regs->u_regs[UREG_FP] = (unsigned long) sf; in setup_rt_frame()
392 regs->u_regs[UREG_I1] = (unsigned long) &sf->info; in setup_rt_frame()
393 regs->u_regs[UREG_I2] = (unsigned long) &sf->regs; in setup_rt_frame()
401 regs->u_regs[UREG_I7] = (unsigned long)(&(sf->insns[0]) - 2); in setup_rt_frame()
404 err |= __put_user(0x82102065, &sf->insns[0]); in setup_rt_frame()
407 err |= __put_user(0x91d02010, &sf->insns[1]); in setup_rt_frame()
412 flush_sig_insns(current->mm, (unsigned long) &(sf->insns[0])); in setup_rt_frame()