Home
last modified time | relevance | path

Searched refs:context (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.3/kernel/src/arch/x86_64/
Dmod.rs6 pub mod context; module
/DragonOS-0.1.3/kernel/src/ipc/
Dsignal.rs657 (*frame).arg2 = &((*frame).context) as *const sigcontext as usize; in setup_frame()
666 err |= setup_sigcontext(unsafe { &mut (*frame).context }, oldset, &regs).unwrap_or(1); in setup_frame()
745 fn setup_sigcontext(context: &mut sigcontext, mask: &sigset_t, regs: &pt_regs) -> Result<i32, i32> { in setup_sigcontext()
748 context.oldmask = *mask; in setup_sigcontext()
749 context.regs = regs.clone(); in setup_sigcontext()
750 context.trap_num = unsafe { (*current_thread).trap_num }; in setup_sigcontext()
751 context.err_code = unsafe { (*current_thread).err_code }; in setup_sigcontext()
752 context.cr2 = unsafe { (*current_thread).cr2 }; in setup_sigcontext()
763 fn restore_sigcontext(context: *const sigcontext, regs: &mut pt_regs) -> bool { in restore_sigcontext()
766 *regs = (*context).regs; in restore_sigcontext()
[all …]
Dsignal_types.rs642 pub context: sigcontext, field
/DragonOS-0.1.3/kernel/src/sched/
Dcfs.rs11 context::switch_process,