summaryrefslogtreecommitdiff
path: root/kernel/spinlock.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-03 15:18:16 +0200
committerMiguel <m.i@gmx.at>2018-09-03 15:18:16 +0200
commit7eb87bf3f3fa6226657a7106eb255cbfa97758d2 (patch)
tree2d7d2280d32180d18796999bf7687ebe5bf208df /kernel/spinlock.c
parent76b3da6022310dd8edbbbfdf4f73f1696a559853 (diff)
big renaming
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)
{