xref: /openbsd/sys/arch/mips64/include/spinlock.h (revision 8529ddd3)
1 /*	$OpenBSD: spinlock.h,v 1.4 2013/06/01 20:47:40 tedu Exp $	*/
2  /* Public domain */
3 
4 #ifndef _MIPS64_SPINLOCK_H_
5 #define _MIPS64_SPINLOCK_H_
6 
7 #define _ATOMIC_LOCK_UNLOCKED	(0)
8 #define _ATOMIC_LOCK_LOCKED	(1)
9 typedef int _atomic_lock_t;
10 
11 #ifndef _KERNEL
12 int _atomic_lock(volatile _atomic_lock_t *);
13 #endif
14 
15 #endif /* !_MIPS64_SPINLOCK_H_ */
16