From c1b0d254fd4a6a09ab943350ca1c3b0a4cae86a5 Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Tue, 23 Aug 2022 17:15:18 +0200 Subject: [PATCH] Kernel/aarch64: Add stubs for Mutex::lock and Mutex::unlock Also add the g_scheduler_lock to the Dummy.cpp. This makes the aarch64 build succeeded again. --- Kernel/Arch/aarch64/Dummy.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Kernel/Arch/aarch64/Dummy.cpp b/Kernel/Arch/aarch64/Dummy.cpp index 3b02fde3637..4fc958f2710 100644 --- a/Kernel/Arch/aarch64/Dummy.cpp +++ b/Kernel/Arch/aarch64/Dummy.cpp @@ -21,6 +21,7 @@ namespace Kernel { READONLY_AFTER_INIT Thread* g_finalizer; +RecursiveSpinlock g_scheduler_lock { LockRank::None }; } @@ -34,6 +35,21 @@ void get_fast_random_bytes(Bytes) } +// Mutex +namespace Kernel { + +void Mutex::lock(Mode, [[maybe_unused]] LockLocation const& location) +{ + VERIFY_NOT_REACHED(); +} + +void Mutex::unlock() +{ + VERIFY_NOT_REACHED(); +} + +} + // Inode namespace Kernel {