summaryrefslogtreecommitdiff
path: root/arch/x86_64/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/atomic.h')
-rw-r--r--arch/x86_64/atomic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86_64/atomic.h b/arch/x86_64/atomic.h
index ae0a576c..333098c3 100644
--- a/arch/x86_64/atomic.h
+++ b/arch/x86_64/atomic.h
@@ -91,6 +91,11 @@ static inline void a_spin()
__asm__ __volatile__( "pause" : : : "memory" );
}
+static inline void a_barrier()
+{
+ __asm__ __volatile__( "" : : : "memory" );
+}
+
static inline void a_crash()
{
__asm__ __volatile__( "hlt" : : : "memory" );