summaryrefslogtreecommitdiff
path: root/kernel/spinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/spinlock.c')
-rw-r--r--kernel/spinlock.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/kernel/spinlock.c b/kernel/spinlock.c
index bbc68c0..03efa6e 100644
--- a/kernel/spinlock.c
+++ b/kernel/spinlock.c
@@ -1,11 +1,9 @@
-
#include "spinlock.h"
#include "kernel.h"
-#include "asm/x86.h"
+#include "asm_x86.h"
-// https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
static volatile uint32_t spinlocks[NUMBER_SPINLOCKS];
@@ -16,13 +14,11 @@ void check_spinlocks()
klog("%d",spinlocks[i]);
}
-/*
void lock_spin(uint32_t i)
{
uint32_t *addr=spinlocks+i;
while(x86_xchg(addr,1));
}
-*/
void lock_release(uint32_t i)
{