xref: /openbsd-src/sys/arch/hppa/include/spinlock.h (revision a5511fa9f431600dbd6dc2b46fc4e6b73e7d239c)
1*a5511fa9Sguenther /*	$OpenBSD: spinlock.h,v 1.5 2017/09/05 02:40:54 guenther Exp $	*/
23c0f6b5fSd 
33c0f6b5fSd #ifndef _MACHINE_SPINLOCK_H_
43c0f6b5fSd #define _MACHINE_SPINLOCK_H_
53c0f6b5fSd 
67ff8e670Stedu #define _ATOMIC_LOCK_UNLOCKED	(1)
77ff8e670Stedu #define _ATOMIC_LOCK_LOCKED	(0)
87ff8e670Stedu typedef long _atomic_lock_t __attribute__((__aligned__(16)));
97ff8e670Stedu 
103c0f6b5fSd #endif
11