From a6f78b895f83f8ed87a1fb0ec42e039e28b7bf5c Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Tue, 27 Dec 2022 14:14:48 +0100 Subject: [PATCH] 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. --- Kernel/Arch/aarch64/Processor.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Kernel/Arch/aarch64/Processor.h b/Kernel/Arch/aarch64/Processor.h index 4702e11b6d..05d80a237a 100644 --- a/Kernel/Arch/aarch64/Processor.h +++ b/Kernel/Arch/aarch64/Processor.h @@ -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) {