Home
last modified time | relevance | path

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

/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs79 fp_state: Option<FpState>, field
114 fp_state: None, in new()
147 if self.fp_state.is_none() { in save_fp_state()
148 self.fp_state = Some(FpState::new()); in save_fp_state()
151 self.fp_state.as_mut().unwrap().save(); in save_fp_state()
155 if unlikely(self.fp_state.is_none()) { in restore_fp_state()
159 self.fp_state.as_mut().unwrap().restore(); in restore_fp_state()
163 pub fn fp_state(&self) -> &Option<FpState> { in fp_state() method
164 &self.fp_state in fp_state()
169 if unlikely(self.fp_state.is_none()) { in clear_fp_state()
[all …]
/DragonOS/kernel/src/arch/riscv64/process/
H A Dmod.rs137 new_arch_guard.fp_state = current_arch_guard.fp_state; in copy_thread()
206 prev.arch_info_irqsave().fp_state.save(prev_regs); in switch_process_fpu()
208 next.arch_info_irqsave().fp_state.restore(next_regs); in switch_process_fpu()
364 fp_state: FpDExtState, field
398 fp_state: FpDExtState::new(), in new()
/DragonOS/kernel/src/arch/x86_64/ipc/
H A Dsignal.rs370 self.reserved_for_x87_state = *archinfo_guard.fp_state(); in setup_sigcontext()