Lines Matching refs:frame
364 struct sigframe __user *frame; in setup_signal_stack_sc() local
370 frame = (struct sigframe __user *) stack_top - 1; in setup_signal_stack_sc()
371 if (!access_ok(frame, sizeof(*frame))) in setup_signal_stack_sc()
374 restorer = frame->retcode; in setup_signal_stack_sc()
378 err |= __put_user(restorer, &frame->pretcode); in setup_signal_stack_sc()
379 err |= __put_user(sig, &frame->sig); in setup_signal_stack_sc()
380 err |= copy_sc_to_user(&frame->sc, &frame->fpstate, regs, mask->sig[0]); in setup_signal_stack_sc()
382 err |= __copy_to_user(&frame->extramask, &mask->sig[1], in setup_signal_stack_sc()
383 sizeof(frame->extramask)); in setup_signal_stack_sc()
392 err |= __put_user(0xb858, (short __user *)(frame->retcode+0)); in setup_signal_stack_sc()
393 err |= __put_user(__NR_sigreturn, (int __user *)(frame->retcode+2)); in setup_signal_stack_sc()
394 err |= __put_user(0x80cd, (short __user *)(frame->retcode+6)); in setup_signal_stack_sc()
399 PT_REGS_SP(regs) = (unsigned long) frame; in setup_signal_stack_sc()
410 struct rt_sigframe __user *frame; in setup_signal_stack_si() local
415 frame = (struct rt_sigframe __user *) stack_top - 1; in setup_signal_stack_si()
416 if (!access_ok(frame, sizeof(*frame))) in setup_signal_stack_si()
419 restorer = frame->retcode; in setup_signal_stack_si()
423 err |= __put_user(restorer, &frame->pretcode); in setup_signal_stack_si()
424 err |= __put_user(sig, &frame->sig); in setup_signal_stack_si()
425 err |= __put_user(&frame->info, &frame->pinfo); in setup_signal_stack_si()
426 err |= __put_user(&frame->uc, &frame->puc); in setup_signal_stack_si()
427 err |= copy_siginfo_to_user(&frame->info, &ksig->info); in setup_signal_stack_si()
428 err |= copy_ucontext_to_user(&frame->uc, &frame->fpstate, mask, in setup_signal_stack_si()
438 err |= __put_user(0xb8, (char __user *)(frame->retcode+0)); in setup_signal_stack_si()
439 err |= __put_user(__NR_rt_sigreturn, (int __user *)(frame->retcode+1)); in setup_signal_stack_si()
440 err |= __put_user(0x80cd, (short __user *)(frame->retcode+5)); in setup_signal_stack_si()
445 PT_REGS_SP(regs) = (unsigned long) frame; in setup_signal_stack_si()
448 PT_REGS_DX(regs) = (unsigned long) &frame->info; in setup_signal_stack_si()
449 PT_REGS_CX(regs) = (unsigned long) &frame->uc; in setup_signal_stack_si()
456 struct sigframe __user *frame = (struct sigframe __user *)(sp - 8); in sys_sigreturn() local
458 struct sigcontext __user *sc = &frame->sc; in sys_sigreturn()
462 copy_from_user(&set.sig[1], frame->extramask, sig_size)) in sys_sigreturn()
492 struct rt_sigframe __user *frame; in setup_signal_stack_si() local
496 frame = (struct rt_sigframe __user *) in setup_signal_stack_si()
499 frame = (struct rt_sigframe __user *) ((unsigned long) frame - 128 - 8); in setup_signal_stack_si()
501 if (!access_ok(frame, sizeof(*frame))) in setup_signal_stack_si()
505 err |= copy_siginfo_to_user(&frame->info, &ksig->info); in setup_signal_stack_si()
511 err |= __put_user(0, &frame->uc.uc_flags); in setup_signal_stack_si()
512 err |= __put_user(0, &frame->uc.uc_link); in setup_signal_stack_si()
513 err |= __save_altstack(&frame->uc.uc_stack, PT_REGS_SP(regs)); in setup_signal_stack_si()
514 err |= copy_sc_to_user(&frame->uc.uc_mcontext, &frame->fpstate, regs, in setup_signal_stack_si()
517 fp_to = (unsigned long)&frame->fpstate; in setup_signal_stack_si()
519 err |= __put_user(fp_to, &frame->uc.uc_mcontext.fpstate); in setup_signal_stack_si()
521 err |= __put_user(set->sig[0], &frame->uc.uc_sigmask.sig[0]); in setup_signal_stack_si()
522 err |= __put_user(set->sig[1], &frame->uc.uc_sigmask.sig[1]); in setup_signal_stack_si()
525 err |= __copy_to_user(&frame->uc.uc_sigmask, set, in setup_signal_stack_si()
535 &frame->pretcode); in setup_signal_stack_si()
543 PT_REGS_SP(regs) = (unsigned long) frame; in setup_signal_stack_si()
552 PT_REGS_SI(regs) = (unsigned long) &frame->info; in setup_signal_stack_si()
553 PT_REGS_DX(regs) = (unsigned long) &frame->uc; in setup_signal_stack_si()
563 struct rt_sigframe __user *frame = in sys_rt_sigreturn() local
565 struct ucontext __user *uc = &frame->uc; in sys_rt_sigreturn()