Lines Matching refs:context
629 (*frame).arg2 = &((*frame).context) as *const sigcontext as usize; in setup_frame()
638 err |= setup_sigcontext(unsafe { &mut (*frame).context }, oldset, ®s).unwrap_or(1); in setup_frame()
717 fn setup_sigcontext(context: &mut sigcontext, mask: &sigset_t, regs: &pt_regs) -> Result<i32, i32> { in setup_sigcontext()
720 context.oldmask = *mask; in setup_sigcontext()
721 context.regs = regs.clone(); in setup_sigcontext()
722 context.trap_num = unsafe { (*current_thread).trap_num }; in setup_sigcontext()
723 context.err_code = unsafe { (*current_thread).err_code }; in setup_sigcontext()
724 context.cr2 = unsafe { (*current_thread).cr2 }; in setup_sigcontext()
735 fn restore_sigcontext(context: *const sigcontext, regs: &mut pt_regs) -> bool { in restore_sigcontext()
738 *regs = (*context).regs; in restore_sigcontext()
740 (*current_thread).trap_num = (*context).trap_num; in restore_sigcontext()
741 (*current_thread).cr2 = (*context).cr2; in restore_sigcontext()
742 (*current_thread).err_code = (*context).err_code; in restore_sigcontext()
985 let mut sigmask: sigset_t = unsafe { (*frame).context.oldmask }; in sys_rt_sigreturn()
989 if restore_sigcontext(unsafe { &mut (*frame).context }, regs) == false { in sys_rt_sigreturn()