Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/ipc/
Dsignal.rs774 let current_thread = current_pcb().thread; in setup_sigcontext() localVariable
778 context.trap_num = unsafe { (*current_thread).trap_num }; in setup_sigcontext()
779 context.err_code = unsafe { (*current_thread).err_code }; in setup_sigcontext()
780 context.cr2 = unsafe { (*current_thread).cr2 }; in setup_sigcontext()
792 let mut current_thread = current_pcb().thread; in restore_sigcontext() localVariable
796 (*current_thread).trap_num = (*context).trap_num; in restore_sigcontext()
797 (*current_thread).cr2 = (*context).cr2; in restore_sigcontext()
798 (*current_thread).err_code = (*context).err_code; in restore_sigcontext()