diff options
Diffstat (limited to 'lib/libpthread/arch/m68k/_atomic_lock.c')
-rw-r--r-- | lib/libpthread/arch/m68k/_atomic_lock.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libpthread/arch/m68k/_atomic_lock.c b/lib/libpthread/arch/m68k/_atomic_lock.c index be874ad2892..d0e2ddbe2d6 100644 --- a/lib/libpthread/arch/m68k/_atomic_lock.c +++ b/lib/libpthread/arch/m68k/_atomic_lock.c @@ -1,7 +1,8 @@ -/* $OpenBSD: _atomic_lock.c,v 1.1 1998/11/20 11:15:36 d Exp $ */ +/* $OpenBSD: _atomic_lock.c,v 1.2 1998/12/18 05:59:17 d Exp $ */ /* * Atomic lock for m68k */ + #include "spinlock.h" register_t @@ -25,3 +26,10 @@ _atomic_lock(volatile register_t *lock) : "d"(1), "0"(old)); return old; } + +int +_atomic_lock(volatile register_t *lock) +{ + + return *lock; +} |