Go to the documentation of this file.
18 #ifndef __POK_SPINLOCK_H__
19 #define __POK_SPINLOCK_H__
23 #define SPIN_UNLOCK(_spin_) \
28 #define SPIN_LOCK(_spin_) \
29 asm volatile ("mov $1, %%al \n\t" \
31 "lock xchg %0, %%al \n\t" \
32 "test %%al, %%al \n\t" \