Lines Matching refs:context
618 (*frame).arg2 = &((*frame).context) as *const sigcontext as usize; in setup_frame()
628 (*frame).context.sc_stack.fpstate = *fp_state; in setup_frame()
638 err |= setup_sigcontext(unsafe { &mut (*frame).context }, oldset, ®s).unwrap_or(1); in setup_frame()
725 context: &mut sigcontext, in setup_sigcontext()
731 context.oldmask = *mask; in setup_sigcontext()
732 context.regs = regs.clone(); in setup_sigcontext()
733 context.trap_num = unsafe { (*current_thread).trap_num }; in setup_sigcontext()
734 context.err_code = unsafe { (*current_thread).err_code }; in setup_sigcontext()
735 context.cr2 = unsafe { (*current_thread).cr2 }; in setup_sigcontext()
746 fn restore_sigcontext(context: *const sigcontext, regs: &mut pt_regs) -> bool { in restore_sigcontext()
749 *regs = (*context).regs; in restore_sigcontext()
751 (*current_thread).trap_num = (*context).trap_num; in restore_sigcontext()
752 (*current_thread).cr2 = (*context).cr2; in restore_sigcontext()
753 (*current_thread).err_code = (*context).err_code; in restore_sigcontext()
756 *(current_pcb().fp_state as usize as *mut FpState) = (*context).sc_stack.fpstate; in restore_sigcontext()
882 let mut sigmask: sigset_t = unsafe { (*frame).context.oldmask }; in sys_rt_sigreturn()
886 if restore_sigcontext(unsafe { &mut (*frame).context }, regs) == false { in sys_rt_sigreturn()