1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +00:00

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().
This commit is contained in:
Timon Kruiper 2022-05-03 00:19:49 +02:00 committed by Andreas Kling
parent 8e0bd63b0c
commit 3b4d2d9b51

View file

@ -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;
}