1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 09:17:34 +00:00

Kernel/aarch64: Stub Processor::clean_fpu_state() instead of crashing

Also print a message to the debug output, such that developers know that
the current implementation is not actually correct.
This commit is contained in:
Timon Kruiper 2022-12-27 14:14:48 +01:00 committed by Andrew Kaster
parent a3cbaa3449
commit a6f78b895f

View file

@ -206,7 +206,12 @@ public:
VERIFY(!Processor::in_critical());
}
ALWAYS_INLINE static FPUState const& clean_fpu_state() { TODO_AARCH64(); }
ALWAYS_INLINE static FPUState const& clean_fpu_state()
{
static FPUState s_clean_fpu_state {};
dbgln("FIXME: Processor: Actually return correct FPUState.");
return s_clean_fpu_state;
}
ALWAYS_INLINE static void set_current_thread(Thread& current_thread)
{