about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc64/bits
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sparc64/bits')
-rw-r--r--sysdeps/sparc/sparc64/bits/atomic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc64/bits/atomic.h b/sysdeps/sparc/sparc64/bits/atomic.h
index 35804a8e14..48b7fd6216 100644
--- a/sysdeps/sparc/sparc64/bits/atomic.h
+++ b/sysdeps/sparc/sparc64/bits/atomic.h
@@ -121,3 +121,6 @@ typedef uintmax_t uatomic_max_t;
   __asm __volatile ("membar #LoadLoad | #LoadStore" : : : "memory")
 #define atomic_write_barrier() \
   __asm __volatile ("membar #LoadStore | #StoreStore" : : : "memory")
+
+extern void __cpu_relax (void);
+#define atomic_spin_nop () __cpu_relax ()