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

#ifndef _MACHINE_SPINLOCK_H_
#define _MACHINE_SPINLOCK_H_

#define _ATOMIC_LOCK_UNLOCKED	(0x00)
#define _ATOMIC_LOCK_LOCKED	(0xFF)
typedef unsigned char _atomic_lock_t;

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

#endif