Lines Matching refs:frame

75 	struct rt_sigframe __user *frame = (struct rt_sigframe __user *)regs->sp;  in _sys_rt_sigreturn()  local
83 if (((unsigned long)frame) & 3) in _sys_rt_sigreturn()
86 if (!access_ok(frame, sizeof(*frame))) in _sys_rt_sigreturn()
88 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in _sys_rt_sigreturn()
93 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) in _sys_rt_sigreturn()
96 if (restore_altstack(&frame->uc.uc_stack)) in _sys_rt_sigreturn()
159 struct rt_sigframe __user *frame; in setup_rt_frame() local
163 frame = get_sigframe(ksig, regs, sizeof(*frame)); in setup_rt_frame()
165 if (!access_ok(frame, sizeof(*frame))) in setup_rt_frame()
170 err |= copy_siginfo_to_user(&frame->info, &ksig->info); in setup_rt_frame()
173 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame()
174 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame()
175 err |= __save_altstack(&frame->uc.uc_stack, regs->sp); in setup_rt_frame()
176 err |= setup_sigcontext(regs, &frame->uc.uc_mcontext); in setup_rt_frame()
178 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
184 return_ip = (unsigned long)&frame->retcode; in setup_rt_frame()
189 err |= __put_user(0xa960, (short __user *)(frame->retcode + 0)); in setup_rt_frame()
190 err |= __put_user(__NR_rt_sigreturn, (short __user *)(frame->retcode + 2)); in setup_rt_frame()
191 err |= __put_user(0x20000001, (unsigned long __user *)(frame->retcode + 4)); in setup_rt_frame()
192 err |= __put_user(0x15000000, (unsigned long __user *)(frame->retcode + 8)); in setup_rt_frame()
201 regs->gpr[4] = (unsigned long)&frame->info; /* arg 2: (siginfo_t*) */ in setup_rt_frame()
202 regs->gpr[5] = (unsigned long)&frame->uc; /* arg 3: ucontext */ in setup_rt_frame()
205 regs->sp = (unsigned long)frame; in setup_rt_frame()