diff options
author | 2012-09-01 00:32:23 +0000 | |
---|---|---|
committer | 2012-09-01 00:32:23 +0000 | |
commit | cde6fc201d55f174c423caf7560c454b29da406e (patch) | |
tree | 3c8a6d2fd05c6c6d8d34297c0d9d94bea91bbc5b /lib/libpthread/arch/hppa/_atomic_lock.c | |
parent | modload needs to invoke ld with -nopie now on ELF platforms (diff) | |
download | wireguard-openbsd-cde6fc201d55f174c423caf7560c454b29da406e.tar.xz wireguard-openbsd-cde6fc201d55f174c423caf7560c454b29da406e.zip |
So passes uthreads
Like autumn leaves on water
don't fear the tedu@
Diffstat (limited to 'lib/libpthread/arch/hppa/_atomic_lock.c')
-rw-r--r-- | lib/libpthread/arch/hppa/_atomic_lock.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/libpthread/arch/hppa/_atomic_lock.c b/lib/libpthread/arch/hppa/_atomic_lock.c deleted file mode 100644 index 427a8108d95..00000000000 --- a/lib/libpthread/arch/hppa/_atomic_lock.c +++ /dev/null @@ -1,15 +0,0 @@ -/* $OpenBSD: _atomic_lock.c,v 1.3 2011/11/14 15:16:12 jsing Exp $ */ -/* - * Atomic lock for hppa - */ -#include "spinlock.h" - -int -_atomic_lock(volatile _spinlock_lock_t *lock) -{ - register register_t old; - - __asm__("ldcws 0(%1), %0" : "=r" (old): "r" (lock)); - - return (old == _SPINLOCK_LOCKED); -} |