diff --git a/Kernel/Arch/aarch64/Processor.h b/Kernel/Arch/aarch64/Processor.h index 03bd67b2a2..f45b7caa5d 100644 --- a/Kernel/Arch/aarch64/Processor.h +++ b/Kernel/Arch/aarch64/Processor.h @@ -114,7 +114,8 @@ public: // FIXME: Actually return the current thread once aarch64 supports threading. ALWAYS_INLINE static Thread* current_thread() { - return nullptr; + static Thread* current_thread { nullptr }; + return current_thread; } ALWAYS_INLINE bool has_nx() const