Kernel: Do not return a null ref in Processor::current on aarch64

Clang rejects binding a reference to a null pointer at compile-time.
Let's just crash explicitly, instead of waiting for a null dereference
to mess things up.
This commit is contained in:
Daniel Bertalan 2021-12-04 09:08:27 +01:00 committed by Brian Gianforcaro
parent c369626ac1
commit 8e2d0c8d5c
Notes: sideshowbarker 2024-07-18 00:54:03 +09:00

View file

@ -58,7 +58,7 @@ public:
return 0;
}
ALWAYS_INLINE static Processor& current() { return *((Processor*)0); }
ALWAYS_INLINE static Processor& current() { VERIFY_NOT_REACHED(); }
static void deferred_call_queue(Function<void()> /* callback */) { }