Lines Matching refs:frame

236 do_rt_sigreturn(struct rt_sigframe __user *frame)  in do_rt_sigreturn()  argument
242 if (!access_ok(VERIFY_READ, &frame->uc, sizeof(frame->uc))) in do_rt_sigreturn()
244 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in do_rt_sigreturn()
249 if (restore_sigcontext(&frame->uc.uc_mcontext, regs)) in do_rt_sigreturn()
341 struct sigframe __user *frame; in setup_frame() local
344 frame = get_sigframe(ksig, oldsp, sizeof(*frame)); in setup_frame()
345 if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame))) in setup_frame()
348 err |= setup_sigcontext(&frame->sc, regs, set->sig[0], oldsp); in setup_frame()
356 err |= __put_user(INSN_MOV_R30_R16, frame->retcode+0); in setup_frame()
357 err |= __put_user(INSN_LDI_R0+__NR_sigreturn, frame->retcode+1); in setup_frame()
358 err |= __put_user(INSN_CALLSYS, frame->retcode+2); in setup_frame()
360 r26 = (unsigned long) frame->retcode; in setup_frame()
372 regs->r18 = (unsigned long) &frame->sc; /* a2: sigcontext pointer */ in setup_frame()
373 wrusp((unsigned long) frame); in setup_frame()
377 current->comm, current->pid, frame, regs->pc, regs->r26); in setup_frame()
386 struct rt_sigframe __user *frame; in setup_rt_frame() local
389 frame = get_sigframe(ksig, oldsp, sizeof(*frame)); in setup_rt_frame()
390 if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame))) in setup_rt_frame()
393 err |= copy_siginfo_to_user(&frame->info, &ksig->info); in setup_rt_frame()
396 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame()
397 err |= __put_user(0, &frame->uc.uc_link); in setup_rt_frame()
398 err |= __put_user(set->sig[0], &frame->uc.uc_osf_sigmask); in setup_rt_frame()
399 err |= __save_altstack(&frame->uc.uc_stack, oldsp); in setup_rt_frame()
400 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, in setup_rt_frame()
402 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
410 err |= __put_user(INSN_MOV_R30_R16, frame->retcode+0); in setup_rt_frame()
412 frame->retcode+1); in setup_rt_frame()
413 err |= __put_user(INSN_CALLSYS, frame->retcode+2); in setup_rt_frame()
415 r26 = (unsigned long) frame->retcode; in setup_rt_frame()
425 regs->r17 = (unsigned long) &frame->info; /* a1: siginfo pointer */ in setup_rt_frame()
426 regs->r18 = (unsigned long) &frame->uc; /* a2: ucontext pointer */ in setup_rt_frame()
427 wrusp((unsigned long) frame); in setup_rt_frame()
431 current->comm, current->pid, frame, regs->pc, regs->r26); in setup_rt_frame()