Lines Matching refs:trap_frame
501 fn sys_rt_sigreturn(trap_frame: &mut TrapFrame) -> u64 { in sys_rt_sigreturn()
502 let frame = (trap_frame.rsp as usize - size_of::<u64>()) as *mut SigFrame; in sys_rt_sigreturn()
509 return trap_frame.rax; in sys_rt_sigreturn()
514 if !unsafe { &mut (*frame).context }.restore_sigcontext(trap_frame) { in sys_rt_sigreturn()
521 return trap_frame.rax; in sys_rt_sigreturn()
555 trap_frame: &mut TrapFrame, in setup_frame()
619 let frame: *mut SigFrame = get_stack(trap_frame, size_of::<SigFrame>()); in setup_frame()
650 .setup_sigcontext(oldset, trap_frame) in setup_frame()
667 trap_frame.rdi = sig as u64; in setup_frame()
668 trap_frame.rsi = unsafe { &(*frame).info as *const SigInfo as u64 }; in setup_frame()
669 trap_frame.rsp = frame as u64; in setup_frame()
670 trap_frame.rip = unsafe { (*frame).handler as u64 }; in setup_frame()
672 trap_frame.cs = (USER_CS.bits() | 0x3) as u64; in setup_frame()
673 trap_frame.ds = (USER_DS.bits() | 0x3) as u64; in setup_frame()