diff options
author | David Leonard <d@cvs.openbsd.org> | 1998-12-18 05:59:19 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1998-12-18 05:59:19 +0000 |
commit | 771cd4d45afd115c066de4b2682205453eac6929 (patch) | |
tree | e2ae5cb642c37fae767bd3a272e68c5a19df7cfa /lib/libpthread/arch/m68k/_atomic_lock.c | |
parent | e5f6128f61a9a572c57cf04778f5616489f2e752 (diff) |
add md _atomic_is_locked; clean
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; +} |