Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dfpu.rs85 let fp: &mut FpState = if pcb.fp_state == null_mut() { in fp_state_save()
87 pcb.fp_state = f as *mut FpState as usize as *mut c_void; in fp_state_save()
90 unsafe { (pcb.fp_state as usize as *mut FpState).as_mut().unwrap() } in fp_state_save()
123 if pcb.fp_state == null_mut() { in fp_state_restore()
141 let fp = unsafe { (pcb.fp_state as usize as *mut FpState).as_mut().unwrap() }; in fp_state_restore()
/DragonOS-0.1.8/kernel/src/process/
Dc_adapter.rs82 if current_pcb().fp_state == null_mut() { in rs_dup_fpstate()
86 let state = current_pcb().fp_state as usize as *mut FpState; in rs_dup_fpstate()
99 if pcb.fp_state != null_mut() { in rs_process_exit_fpstate()
100 let state = pcb.fp_state as usize as *mut FpState; in rs_process_exit_fpstate()
Dproc-types.h137 void *fp_state; member
Dfork.c292 pcb->fp_state = rs_dup_fpstate(); in process_copy_thread()
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal.rs623 if current_pcb().fp_state != null_mut() { in setup_frame()
625 let fp_state: &mut FpState = (current_pcb().fp_state as usize as *mut FpState) in setup_frame() localVariable
628 (*frame).context.sc_stack.fpstate = *fp_state; in setup_frame()
630 fp_state.clear(); in setup_frame()
756 *(current_pcb().fp_state as usize as *mut FpState) = (*context).sc_stack.fpstate; in restore_sigcontext()