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

Kernel/aarch64: Add implementation of Processor::is_bootstrap_processor

This should really go into a generic Processor class, but there is no
such class yet, so a FIXME is added for that.
This commit is contained in:
Timon Kruiper 2022-10-05 19:35:29 +02:00 committed by Gunnar Beutner
parent 9827c11d8b
commit 1348757dda

View file

@ -171,6 +171,12 @@ public:
return *g_current_processor;
}
// FIXME: Move this into generic Processor class, when there is such a class.
ALWAYS_INLINE static bool is_bootstrap_processor()
{
return Processor::current_id() == 0;
}
static void deferred_call_queue(Function<void()> /* callback */)
{
TODO_AARCH64();