diff options
author | 1999-03-03 06:00:10 +0000 | |
---|---|---|
committer | 1999-03-03 06:00:10 +0000 | |
commit | 2e2cba694ebac6d36888da7619ca8edb4960417b (patch) | |
tree | 8c9e0893b6c0ffea841a329237da76d310fb2a92 /lib/libpthread/arch/m88k/_atomic_lock.c | |
parent | Temporary disable AFS and Optimizations for m88k. (diff) | |
download | wireguard-openbsd-2e2cba694ebac6d36888da7619ca8edb4960417b.tar.xz wireguard-openbsd-2e2cba694ebac6d36888da7619ca8edb4960417b.zip |
m88k addition.
Diffstat (limited to 'lib/libpthread/arch/m88k/_atomic_lock.c')
-rw-r--r-- | lib/libpthread/arch/m88k/_atomic_lock.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/libpthread/arch/m88k/_atomic_lock.c b/lib/libpthread/arch/m88k/_atomic_lock.c new file mode 100644 index 00000000000..a6ca8e7f71f --- /dev/null +++ b/lib/libpthread/arch/m88k/_atomic_lock.c @@ -0,0 +1,19 @@ +/* $OpenBSD: _atomic_lock.c,v 1.1 1999/03/03 06:00:10 smurph Exp $ */ +/* + * Atomic lock for m68k + */ + +#include "spinlock.h" + +int +_atomic_lock(volatile _spinlock_lock_t *lock) +{ + return (_thread_slow_atomic_lock(lock)); +} + +int +_atomic_is_locked(volatile _spinlock_lock_t *lock) +{ + + return (*lock != _SPINLOCK_UNLOCKED); +} |