diff options
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/include/spinlock.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/arch/mips64/include/spinlock.h b/sys/arch/mips64/include/spinlock.h index 87e9be5a768..766e8fd1523 100644 --- a/sys/arch/mips64/include/spinlock.h +++ b/sys/arch/mips64/include/spinlock.h @@ -1,11 +1,15 @@ -/* $OpenBSD: spinlock.h,v 1.3 2011/03/23 16:54:36 pirofti Exp $ */ +/* $OpenBSD: spinlock.h,v 1.4 2013/06/01 20:47:40 tedu Exp $ */ /* Public domain */ #ifndef _MIPS64_SPINLOCK_H_ #define _MIPS64_SPINLOCK_H_ -#define _SPINLOCK_UNLOCKED (0) -#define _SPINLOCK_LOCKED (1) -typedef int _spinlock_lock_t; +#define _ATOMIC_LOCK_UNLOCKED (0) +#define _ATOMIC_LOCK_LOCKED (1) +typedef int _atomic_lock_t; + +#ifndef _KERNEL +int _atomic_lock(volatile _atomic_lock_t *); +#endif #endif /* !_MIPS64_SPINLOCK_H_ */ |