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 3235db16..0d3da6f8 100644
--- a/arch/x86_64/atomic.h
+++ b/arch/x86_64/atomic.h
@@ -118,5 +118,10 @@ static inline void a_spin()
__asm__ __volatile__( "pause" : : : "memory" );
}
+static inline void a_crash()
+{
+ __asm__ __volatile__( "hlt" : : : "memory" );
+}
+
#endif