aboutsummaryrefslogtreecommitdiff
path: root/include/asm-s390/bug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-s390/bug.h')
-rw-r--r--include/asm-s390/bug.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-s390/bug.h b/include/asm-s390/bug.h
new file mode 100644
index 00000000000..2b8d6d4dffc
--- /dev/null
+++ b/include/asm-s390/bug.h
@@ -0,0 +1,14 @@
+#ifndef _S390_BUG_H
+#define _S390_BUG_H
+
+#include <linux/kernel.h>
+
+#define BUG() do { \
+ printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
+ __asm__ __volatile__(".long 0"); \
+} while (0)
+
+#define HAVE_ARCH_BUG
+#include <asm-generic/bug.h>
+
+#endif