Lines Matching refs:frame
142 setup_sigcontext(struct rt_sigframe __user *frame, struct pt_regs *regs) in setup_sigcontext() argument
144 struct sigcontext __user *sc = &frame->uc.uc_mcontext; in setup_sigcontext()
166 err |= __copy_to_user(&frame->xtregs.cp, &ti->xtregs_cp, in setup_sigcontext()
167 sizeof (frame->xtregs.cp)); in setup_sigcontext()
169 err |= __copy_to_user(&frame->xtregs.opt, ®s->xtregs_opt, in setup_sigcontext()
171 err |= __copy_to_user(&frame->xtregs.user, &ti->xtregs_user, in setup_sigcontext()
174 err |= __put_user(err ? NULL : &frame->xtregs, &sc->sc_xtregs); in setup_sigcontext()
180 restore_sigcontext(struct pt_regs *regs, struct rt_sigframe __user *frame) in restore_sigcontext() argument
182 struct sigcontext __user *sc = &frame->uc.uc_mcontext; in restore_sigcontext()
230 err |= __copy_from_user(&ti->xtregs_cp, &frame->xtregs.cp, in restore_sigcontext()
231 sizeof (frame->xtregs.cp)); in restore_sigcontext()
233 err |= __copy_from_user(&ti->xtregs_user, &frame->xtregs.user, in restore_sigcontext()
235 err |= __copy_from_user(®s->xtregs_opt, &frame->xtregs.opt, in restore_sigcontext()
249 struct rt_sigframe __user *frame; in xtensa_rt_sigreturn() local
259 frame = (struct rt_sigframe __user *) regs->areg[1]; in xtensa_rt_sigreturn()
261 if (!access_ok(frame, sizeof(*frame))) in xtensa_rt_sigreturn()
264 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in xtensa_rt_sigreturn()
269 if (restore_sigcontext(regs, frame)) in xtensa_rt_sigreturn()
274 if (restore_altstack(&frame->uc.uc_stack)) in xtensa_rt_sigreturn()
343 struct rt_sigframe *frame; in setup_frame() local
354 frame = (void *)((sp - sizeof(*frame)) & -16ul); in setup_frame()
359 if (!access_ok(frame, sizeof(*frame))) { in setup_frame()
364 err |= copy_siginfo_to_user(&frame->info, &ksig->info); in setup_frame()
369 err |= __put_user(0, &frame->uc.uc_flags); in setup_frame()
370 err |= __put_user(0, &frame->uc.uc_link); in setup_frame()
371 err |= __save_altstack(&frame->uc.uc_stack, regs->areg[1]); in setup_frame()
372 err |= setup_sigcontext(frame, regs); in setup_frame()
373 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_frame()
381 err |= gen_return_code(frame->retcode); in setup_frame()
386 ra = (unsigned long) frame->retcode; in setup_frame()
398 (unsigned long) frame); in setup_frame()
412 regs->areg[base + 3] = (unsigned long) &frame->info; in setup_frame()
413 regs->areg[base + 4] = (unsigned long) &frame->uc; in setup_frame()
418 current->comm, current->pid, sig, frame, regs->pc); in setup_frame()