Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dfpu.rs19 pub struct FpState { struct
38 impl Default for FpState { argument
55 impl FpState { implementation
64 _fxsave64(self as *mut FpState as *mut u8); in save()
70 _fxrstor64(self as *const FpState as *const u8); in restore() constant
85 let fp: &mut FpState = if pcb.fp_state == null_mut() { in fp_state_save()
86 let f = Box::leak(Box::new(FpState::default())); 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()
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.rs6 arch::{asm::current::current_pcb, fpu::FpState},
83 return Box::leak(Box::new(FpState::default())) as *mut FpState as usize as *mut c_void; in rs_dup_fpstate()
86 let state = current_pcb().fp_state as usize as *mut FpState; in rs_dup_fpstate()
89 let state: &mut FpState = Box::leak(Box::new(s.clone())); in rs_dup_fpstate()
91 return state as *mut FpState as usize as *mut c_void; in rs_dup_fpstate()
100 let state = pcb.fp_state as usize as *mut FpState; in rs_process_exit_fpstate()
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal.rs11 fpu::FpState,
625 let fp_state: &mut FpState = (current_pcb().fp_state as usize as *mut FpState) in setup_frame()
756 *(current_pcb().fp_state as usize as *mut FpState) = (*context).sc_stack.fpstate; in restore_sigcontext()
Dsignal_types.rs9 use crate::arch::fpu::FpState;
668 pub fpstate: FpState,