summaryrefslogtreecommitdiff
path: root/kernel/spinlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/spinlock.h')
-rw-r--r--kernel/spinlock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/spinlock.h b/kernel/spinlock.h
index 43cd82f..40d9194 100644
--- a/kernel/spinlock.h
+++ b/kernel/spinlock.h
@@ -3,9 +3,9 @@
#include <stdint.h>
-typedef uint8_t spinlock;
+typedef volatile uint8_t spinlock;
-volatile void lock_spin(spinlock);
+void lock_spin(spinlock);
void lock_release(spinlock);
#endif