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
commit a6f78b895f
Notes: sideshowbarker 2024-07-17 18:49:10 +09:00

View file

@ -206,7 +206,12 @@ public:
VERIFY(!Processor::in_critical()); 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) ALWAYS_INLINE static void set_current_thread(Thread& current_thread)
{ {