From 1348757dda1093738bc4b577d9278be0faa20a40 Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Wed, 5 Oct 2022 19:35:29 +0200 Subject: [PATCH] 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. --- Kernel/Arch/aarch64/Processor.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Kernel/Arch/aarch64/Processor.h b/Kernel/Arch/aarch64/Processor.h index 025b4ac0db..7cbdd72862 100644 --- a/Kernel/Arch/aarch64/Processor.h +++ b/Kernel/Arch/aarch64/Processor.h @@ -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 /* callback */) { TODO_AARCH64();