summaryrefslogtreecommitdiff
path: root/sysdeps/i386/bits/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/bits/atomic.h')
-rw-r--r--sysdeps/i386/bits/atomic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/i386/bits/atomic.h b/sysdeps/i386/bits/atomic.h
index 27840f9fe3..aa3f901877 100644
--- a/sysdeps/i386/bits/atomic.h
+++ b/sysdeps/i386/bits/atomic.h
@@ -181,6 +181,11 @@ init_has_cmpxchg (void) \
\
*__gmemp == (oldval) ? (*__gmemp = __gnewval, 0) : 1; })
+/* XXX We do not really need 64-bit compare-and-exchange. At least
+ not in the moment. */
+# define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \
+ ({ __typeof (*mem) ret = *(mem); abort (); ret = (newval); ret = (oldval); })
+
#endif
/* Note that we need no lock prefix. */