Forgot to add volatile

Did I check to see if it compiled before making the previous commit? Yes, of course, why are you asking? ...
This commit is contained in:
apio 2022-09-18 20:16:46 +02:00
parent d4a982306f
commit 99e681aeb4

View File

@ -1,8 +1,8 @@
#include "thread/Spinlock.h" #include "thread/Spinlock.h"
extern "C" void spinlock_lock_acquire(uint64_t* lock); extern "C" void spinlock_lock_acquire(volatile uint64_t* lock);
extern "C" void spinlock_lock_release(uint64_t* lock); extern "C" void spinlock_lock_release(volatile uint64_t* lock);
extern "C" int spinlock_lock_is_locked(uint64_t* lock); extern "C" int spinlock_lock_is_locked(volatile uint64_t* lock);
void Spinlock::acquire() void Spinlock::acquire()
{ {