about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/atomic_arch.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/atomic_arch.h b/arch/arm/atomic_arch.h
index a52254b2..a74cf3b7 100644
--- a/arch/arm/atomic_arch.h
+++ b/arch/arm/atomic_arch.h
@@ -62,3 +62,13 @@ static inline void a_barrier()
 		: : : "memory", "cc", "ip", "lr" );
 }
 #endif
+
+#define a_crash a_crash
+static inline void a_crash()
+{
+	__asm__ __volatile__(".byte 0xf1, 0xde"
+#ifndef __thumb__
+		", 0xfd, 0xe7"
+#endif
+		: : : "memory");
+}