Lines Matching refs:frame
122 struct compat_rt_sigframe __user *frame; in COMPAT_SYSCALL_DEFINE0() local
129 frame = (struct compat_rt_sigframe __user *)regs->sp; in COMPAT_SYSCALL_DEFINE0()
131 if (!access_ok(frame, sizeof(*frame))) in COMPAT_SYSCALL_DEFINE0()
134 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in COMPAT_SYSCALL_DEFINE0()
139 if (compat_restore_sigcontext(regs, &frame->uc.uc_mcontext)) in COMPAT_SYSCALL_DEFINE0()
142 if (compat_restore_altstack(&frame->uc.uc_stack)) in COMPAT_SYSCALL_DEFINE0()
153 frame, (void *)regs->epc, (void *)regs->sp); in COMPAT_SYSCALL_DEFINE0()
159 static long compat_setup_sigcontext(struct compat_rt_sigframe __user *frame, in compat_setup_sigcontext() argument
162 struct compat_sigcontext __user *sc = &frame->uc.uc_mcontext; in compat_setup_sigcontext()
202 struct compat_rt_sigframe __user *frame; in compat_setup_rt_frame() local
205 frame = compat_get_sigframe(ksig, regs, sizeof(*frame)); in compat_setup_rt_frame()
206 if (!access_ok(frame, sizeof(*frame))) in compat_setup_rt_frame()
209 err |= copy_siginfo_to_user32(&frame->info, &ksig->info); in compat_setup_rt_frame()
212 err |= __put_user(0, &frame->uc.uc_flags); in compat_setup_rt_frame()
213 err |= __put_user(NULL, &frame->uc.uc_link); in compat_setup_rt_frame()
214 err |= __compat_save_altstack(&frame->uc.uc_stack, regs->sp); in compat_setup_rt_frame()
215 err |= compat_setup_sigcontext(frame, regs); in compat_setup_rt_frame()
216 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in compat_setup_rt_frame()
231 regs->sp = (unsigned long)frame; in compat_setup_rt_frame()
233 regs->a1 = (unsigned long)(&frame->info); /* a1: siginfo pointer */ in compat_setup_rt_frame()
234 regs->a2 = (unsigned long)(&frame->uc); /* a2: ucontext pointer */ in compat_setup_rt_frame()
239 (void *)regs->epc, (void *)regs->ra, frame); in compat_setup_rt_frame()