summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64/include/spinlock.h
blob: 24c3d89ff02c631f4aa708f129472ae2222ebf8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	$OpenBSD: spinlock.h,v 1.3 2013/06/01 20:47:40 tedu Exp $	*/

#ifndef _MACHINE_SPINLOCK_H_
#define _MACHINE_SPINLOCK_H_

#define _ATOMIC_LOCK_UNLOCKED	(1)
#define _ATOMIC_LOCK_LOCKED	(0)
typedef long _atomic_lock_t __attribute__((__aligned__(16)));

#ifndef _KERNEL
int _atomic_lock(volatile _atomic_lock_t *);
#endif

#endif