pub fn fpu_switch(&mut self) {
		if !Rc::ptr_eq(&self.current_task, &self.fpu_owner) {
			debug!(
				"Switching FPU owner from task {} to {}",
				self.fpu_owner.borrow().id,
				self.current_task.borrow().id
			);

                        {
			    let mut owner = self.fpu_owner.borrow_mut();
                            if owner.status != TaskStatus::TaskInvalid && 
                               owner.status != TaskStatus::TaskFinished {
                                owner.last_fpu_state.save();
                            }
                        }
			self.current_task.borrow().last_fpu_state.restore();
			self.fpu_owner = self.current_task.clone();
		}
	}
/// Save the FPU context for the current FPU owner and restore it for the current task,
/// which wants to use the FPU now.
Save the FPU context for the current FPU owner and restore it for the current task,
which wants to use the FPU now.
Save the FPU context for the current FPU owner and restore it for the current task which wants to use the FPU now .
pub fn fpu_switch(&mut self) {
		if !Rc::ptr_eq(&self.current_task, &self.fpu_owner) {
			debug!(
				"Switching FPU owner from task {} to {}",
				self.fpu_owner.borrow().id,
				self.current_task.borrow().id
			);
                        {
			    let mut owner = self.fpu_owner.borrow_mut();
                            if owner.status != TaskStatus::TaskInvalid && 
                               owner.status != TaskStatus::TaskFinished {
                                owner.last_fpu_state.save();
                            }
                        }
			self.current_task.borrow().last_fpu_state.restore();
			self.fpu_owner = self.current_task.clone();
		}
	}
pub fn fpu_switch ( & mut self ) { if ! Rc :: ptr_eq ( & self . current_task , & self . fpu_owner ) { debug ! ( " " self fpu_owner borrow ( ) id self current_task borrow ( ) id ) ; { let mut owner = self . fpu_owner . borrow_mut ( ) ; if owner . status != TaskStatus :: TaskInvalid && owner . status != TaskStatus :: TaskFinished { owner . last_fpu_state . save ( ) ; } } self . current_task . borrow ( ) . last_fpu_state . restore ( ) ; self . fpu_owner = self . current_task . clone ( ) ; } }
Save the FPU context for the current FPU owner and restore it for the current task,
which wants to use the FPU now.
Save the FPU context for the current FPU owner and restore it for the current task which wants to use the FPU now .
&mut self
&mut self