diff options
author | 1998-12-18 05:59:17 +0000 | |
---|---|---|
committer | 1998-12-18 05:59:17 +0000 | |
commit | 973d7f92984217080c39b0014ba55c9b44539146 (patch) | |
tree | 7d915f515d3ae12f337386af2c27664fbae8bb51 /lib/libpthread/arch/mips | |
parent | Disable 3c574 until all the MII code required is added. (diff) | |
download | wireguard-openbsd-973d7f92984217080c39b0014ba55c9b44539146.tar.xz wireguard-openbsd-973d7f92984217080c39b0014ba55c9b44539146.zip |
add md _atomic_is_locked; clean
Diffstat (limited to 'lib/libpthread/arch/mips')
-rw-r--r-- | lib/libpthread/arch/mips/_atomic_lock.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libpthread/arch/mips/_atomic_lock.c b/lib/libpthread/arch/mips/_atomic_lock.c index 088d4a7a643..4df2a99ad85 100644 --- a/lib/libpthread/arch/mips/_atomic_lock.c +++ b/lib/libpthread/arch/mips/_atomic_lock.c @@ -1,7 +1,8 @@ -/* $OpenBSD: _atomic_lock.c,v 1.1 1998/11/20 11:15:37 d Exp $ */ +/* $OpenBSD: _atomic_lock.c,v 1.2 1998/12/18 05:59:18 d Exp $ */ /* * Atomic lock for mips */ + #include "pthread_private.h" #include "spinlock.h" #include <signal.h> @@ -49,3 +50,10 @@ _atomic_lock(volatile register_t *lock) #endif return old; } + +int +_atomic_is_locked(volatile register_t * lock) +{ + + return *lock; +} |