diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-01-25 23:53:18 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-01-25 23:53:18 +0100 |
commit | acffbf7d150101fe96c4fa1256fa73371049d4ff (patch) | |
tree | 363daf8140003ee127489fd08bf95afa5423ab93 /libc/sysdeps/linux/hppa/bits/atomic.h | |
parent | cc22effd6d4b8ecb3a5a5d50cb29ac77d38f74bb (diff) |
hppa: unbreak toolchain building
At least allow to build a toolchain for hppa.
Sync some headers with glibc.
Diffstat (limited to 'libc/sysdeps/linux/hppa/bits/atomic.h')
-rw-r--r-- | libc/sysdeps/linux/hppa/bits/atomic.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/hppa/bits/atomic.h b/libc/sysdeps/linux/hppa/bits/atomic.h index 0bf5a6a5f..9890af2f0 100644 --- a/libc/sysdeps/linux/hppa/bits/atomic.h +++ b/libc/sysdeps/linux/hppa/bits/atomic.h @@ -20,7 +20,7 @@ #include <errno.h> #include <bits/kernel-features.h> -#define ABORT_INSTRUCTION __asm__(__UCLIBC_ABORT_INSTRUCTION__) +#define ABORT_INSTRUCTION __asm__("iitlbp %r0,(%sr0, %r0)") /* We need EFAULT, ENOSYS */ #if !defined EFAULT && !defined ENOSYS @@ -58,7 +58,6 @@ typedef uintmax_t uatomic_max_t; #define LWS_CLOBBER "r1", "r26", "r25", "r24", "r23", "r22", "r21", "r20", "r28", "r31", "memory" #define ASM_EAGAIN "11" -#if __ASSUME_LWS_CAS /* The only basic operation needed is compare and exchange. */ # define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \ ({ \ @@ -94,10 +93,6 @@ typedef uintmax_t uatomic_max_t; /* Return 1 if it was already acquired */ \ (ret != oldval); \ }) -#else -# error __ASSUME_LWS_CAS is required to build uClibc. -#endif -/* __ASSUME_LWS_CAS */ #endif /* _BITS_ATOMIC_H */ |