1 /* $OpenBSD: spinlock.h,v 1.2 2013/06/01 20:47:40 tedu Exp $ */ 2 3 #ifndef _MACHINE_SPINLOCK_H_ 4 #define _MACHINE_SPINLOCK_H_ 5 6 #define _ATOMIC_LOCK_UNLOCKED (0) 7 #define _ATOMIC_LOCK_LOCKED (1) 8 typedef int _atomic_lock_t; 9 10 #ifndef _KERNEL 11 int _atomic_lock(volatile _atomic_lock_t *); 12 #endif 13 14 #endif 15