aboutsummaryrefslogtreecommitdiff
path: root/include/asm-i386/bug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/bug.h')
-rw-r--r--include/asm-i386/bug.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-i386/bug.h b/include/asm-i386/bug.h
index 706eb511c33..8f79de19eb9 100644
--- a/include/asm-i386/bug.h
+++ b/include/asm-i386/bug.h
@@ -9,6 +9,8 @@
* undefined" opcode for parsing in the trap handler.
*/
+#ifdef CONFIG_BUG
+#define HAVE_ARCH_BUG
#ifdef CONFIG_DEBUG_BUGVERBOSE
#define BUG() \
__asm__ __volatile__( "ud2\n" \
@@ -18,8 +20,7 @@
#else
#define BUG() __asm__ __volatile__("ud2\n")
#endif
+#endif
-#define HAVE_ARCH_BUG
#include <asm-generic/bug.h>
-
#endif