From 7eb87bf3f3fa6226657a7106eb255cbfa97758d2 Mon Sep 17 00:00:00 2001 From: Miguel Date: Mon, 3 Sep 2018 15:18:16 +0200 Subject: big renaming --- kernel/spinlock.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'kernel/spinlock.c') 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) { -- cgit v1.2.3