From 3b4d2d9b519246b9a0129d96a5fde8d9a181ec24 Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Tue, 3 May 2022 00:19:49 +0200 Subject: [PATCH] Kernel: Remove VERIFY_NOT_REACHED in {current, idle}_thread for aarch64 These functions are called by kmalloc, and since there is no support for threading in the aarch64 build yet, we can simply remove the VERIFY_NOT_REACHED(). --- Kernel/Arch/aarch64/Processor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Kernel/Arch/aarch64/Processor.h b/Kernel/Arch/aarch64/Processor.h index d828964299..ed2e6bfdd8 100644 --- a/Kernel/Arch/aarch64/Processor.h +++ b/Kernel/Arch/aarch64/Processor.h @@ -85,10 +85,10 @@ public: return 0; } + // FIXME: Actually return the current thread once aarch64 supports threading. ALWAYS_INLINE static Thread* current_thread() { - VERIFY_NOT_REACHED(); - return 0; + return nullptr; } ALWAYS_INLINE bool has_nx() const @@ -121,9 +121,9 @@ public: return 0; } + // FIXME: Actually return the idle thread once aarch64 supports threading. ALWAYS_INLINE static Thread* idle_thread() { - VERIFY_NOT_REACHED(); return nullptr; }