mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 18:28:10 +00:00
Kernel: Make Processor::clean_fpu_state() static
This function returns the same identical FPU state for all CPU's, so there's no point requiring a Processor instance.
This commit is contained in:
parent
8000e8a080
commit
05e1b196e9
2 changed files with 2 additions and 5 deletions
|
@ -1231,7 +1231,7 @@ RefPtr<Thread> Thread::from_tid(ThreadID tid)
|
|||
|
||||
void Thread::reset_fpu_state()
|
||||
{
|
||||
memcpy(&m_fpu_state, &Processor::current().clean_fpu_state(), sizeof(FPUState));
|
||||
memcpy(&m_fpu_state, &Processor::clean_fpu_state(), sizeof(FPUState));
|
||||
}
|
||||
|
||||
bool Thread::should_be_stopped() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue