summaryrefslogtreecommitdiff
path: root/kernel/spinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/spinlock.c')
-rw-r--r--kernel/spinlock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/spinlock.c b/kernel/spinlock.c
index 975de68..c6d0023 100644
--- a/kernel/spinlock.c
+++ b/kernel/spinlock.c
@@ -3,6 +3,8 @@
#include "lib/logger/log.h"
#include "lib/int/stdint.h"
+// https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
+
typedef uint8_t spinlock;
volatile spinlock spinlocks[16];