From 99e681aeb419c050c1780029d1ee95d7705c9e83 Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 18 Sep 2022 20:16:46 +0200 Subject: [PATCH] Forgot to add volatile Did I check to see if it compiled before making the previous commit? Yes, of course, why are you asking? ... --- kernel/src/thread/Spinlock.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/src/thread/Spinlock.cpp b/kernel/src/thread/Spinlock.cpp index d2f819d4..2db971c2 100644 --- a/kernel/src/thread/Spinlock.cpp +++ b/kernel/src/thread/Spinlock.cpp @@ -1,8 +1,8 @@ #include "thread/Spinlock.h" -extern "C" void spinlock_lock_acquire(uint64_t* lock); -extern "C" void spinlock_lock_release(uint64_t* lock); -extern "C" int spinlock_lock_is_locked(uint64_t* lock); +extern "C" void spinlock_lock_acquire(volatile uint64_t* lock); +extern "C" void spinlock_lock_release(volatile uint64_t* lock); +extern "C" int spinlock_lock_is_locked(volatile uint64_t* lock); void Spinlock::acquire() {