diff options
Diffstat (limited to 'libs/libc/inc/cpu.h')
-rw-r--r-- | libs/libc/inc/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/libc/inc/cpu.h b/libs/libc/inc/cpu.h index f96fa58..52e5571 100644 --- a/libs/libc/inc/cpu.h +++ b/libs/libc/inc/cpu.h @@ -14,9 +14,9 @@ void outb(u16 port, u8 data); void outw(u16 port, u16 data); void outl(u16 port, u32 data); -static inline void spinlock(int *ptr) +static inline void spinlock(u8 *ptr) { - int prev; + u32 prev; do __asm__ volatile("lock xchgl %0,%1" : "=a"(prev) : "m"(*ptr), "a"(1)); while (prev); |