aboutsummaryrefslogtreecommitdiff
path: root/include/asm-sh/bug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sh/bug.h')
-rw-r--r--include/asm-sh/bug.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/asm-sh/bug.h b/include/asm-sh/bug.h
new file mode 100644
index 00000000000..70172217140
--- /dev/null
+++ b/include/asm-sh/bug.h
@@ -0,0 +1,17 @@
+#ifndef __ASM_SH_BUG_H
+#define __ASM_SH_BUG_H
+
+#include <linux/config.h>
+
+/*
+ * Tell the user there is some problem.
+ */
+#define BUG() do { \
+ printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
+ *(volatile int *)0 = 0; \
+} while (0)
+
+#define HAVE_ARCH_BUG
+#include <asm-generic/bug.h>
+
+#endif