Lines Matching full:frame

363 	struct sigframe __user *frame;  in setup_signal_stack_sc()  local
369 frame = (struct sigframe __user *) stack_top - 1; in setup_signal_stack_sc()
370 if (!access_ok(frame, sizeof(*frame))) in setup_signal_stack_sc()
373 restorer = frame->retcode; in setup_signal_stack_sc()
377 err |= __put_user(restorer, &frame->pretcode); in setup_signal_stack_sc()
378 err |= __put_user(sig, &frame->sig); in setup_signal_stack_sc()
379 err |= copy_sc_to_user(&frame->sc, &frame->fpstate, regs, mask->sig[0]); in setup_signal_stack_sc()
381 err |= __copy_to_user(&frame->extramask, &mask->sig[1], in setup_signal_stack_sc()
382 sizeof(frame->extramask)); in setup_signal_stack_sc()
391 err |= __put_user(0xb858, (short __user *)(frame->retcode+0)); in setup_signal_stack_sc()
392 err |= __put_user(__NR_sigreturn, (int __user *)(frame->retcode+2)); in setup_signal_stack_sc()
393 err |= __put_user(0x80cd, (short __user *)(frame->retcode+6)); in setup_signal_stack_sc()
398 PT_REGS_SP(regs) = (unsigned long) frame; in setup_signal_stack_sc()
409 struct rt_sigframe __user *frame; in setup_signal_stack_si() local
414 frame = (struct rt_sigframe __user *) stack_top - 1; in setup_signal_stack_si()
415 if (!access_ok(frame, sizeof(*frame))) in setup_signal_stack_si()
418 restorer = frame->retcode; in setup_signal_stack_si()
422 err |= __put_user(restorer, &frame->pretcode); in setup_signal_stack_si()
423 err |= __put_user(sig, &frame->sig); in setup_signal_stack_si()
424 err |= __put_user(&frame->info, &frame->pinfo); in setup_signal_stack_si()
425 err |= __put_user(&frame->uc, &frame->puc); in setup_signal_stack_si()
426 err |= copy_siginfo_to_user(&frame->info, &ksig->info); in setup_signal_stack_si()
427 err |= copy_ucontext_to_user(&frame->uc, &frame->fpstate, mask, in setup_signal_stack_si()
437 err |= __put_user(0xb8, (char __user *)(frame->retcode+0)); in setup_signal_stack_si()
438 err |= __put_user(__NR_rt_sigreturn, (int __user *)(frame->retcode+1)); in setup_signal_stack_si()
439 err |= __put_user(0x80cd, (short __user *)(frame->retcode+5)); in setup_signal_stack_si()
444 PT_REGS_SP(regs) = (unsigned long) frame; in setup_signal_stack_si()
447 PT_REGS_DX(regs) = (unsigned long) &frame->info; in setup_signal_stack_si()
448 PT_REGS_CX(regs) = (unsigned long) &frame->uc; in setup_signal_stack_si()
455 struct sigframe __user *frame = (struct sigframe __user *)(sp - 8); in sys_sigreturn() local
457 struct sigcontext __user *sc = &frame->sc; in sys_sigreturn()
461 copy_from_user(&set.sig[1], frame->extramask, sig_size)) in sys_sigreturn()
491 struct rt_sigframe __user *frame; in setup_signal_stack_si() local
495 frame = (struct rt_sigframe __user *) in setup_signal_stack_si()
498 frame = (struct rt_sigframe __user *) ((unsigned long) frame - 128 - 8); in setup_signal_stack_si()
500 if (!access_ok(frame, sizeof(*frame))) in setup_signal_stack_si()
504 err |= copy_siginfo_to_user(&frame->info, &ksig->info); in setup_signal_stack_si()
510 err |= __put_user(0, &frame->uc.uc_flags); in setup_signal_stack_si()
511 err |= __put_user(0, &frame->uc.uc_link); in setup_signal_stack_si()
512 err |= __save_altstack(&frame->uc.uc_stack, PT_REGS_SP(regs)); in setup_signal_stack_si()
513 err |= copy_sc_to_user(&frame->uc.uc_mcontext, &frame->fpstate, regs, in setup_signal_stack_si()
516 fp_to = (unsigned long)&frame->fpstate; in setup_signal_stack_si()
518 err |= __put_user(fp_to, &frame->uc.uc_mcontext.fpstate); in setup_signal_stack_si()
520 err |= __put_user(set->sig[0], &frame->uc.uc_sigmask.sig[0]); in setup_signal_stack_si()
521 err |= __put_user(set->sig[1], &frame->uc.uc_sigmask.sig[1]); in setup_signal_stack_si()
524 err |= __copy_to_user(&frame->uc.uc_sigmask, set, in setup_signal_stack_si()
534 &frame->pretcode); in setup_signal_stack_si()
542 PT_REGS_SP(regs) = (unsigned long) frame; in setup_signal_stack_si()
551 PT_REGS_SI(regs) = (unsigned long) &frame->info; in setup_signal_stack_si()
552 PT_REGS_DX(regs) = (unsigned long) &frame->uc; in setup_signal_stack_si()
562 struct rt_sigframe __user *frame = in sys_rt_sigreturn() local
564 struct ucontext __user *uc = &frame->uc; in sys_rt_sigreturn()