xref: /openbsd/sys/arch/powerpc/include/spinlock.h (revision 8529ddd3)
1 /*	$OpenBSD: spinlock.h,v 1.3 2013/06/01 20:47:40 tedu Exp $	*/
2 
3 #ifndef _POWERPC_SPINLOCK_H_
4 #define _POWERPC_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