|
|
@@ -23,7 +23,6 @@
|
|
|
#define LEN_UD0 2
|
|
|
|
|
|
#ifdef CONFIG_GENERIC_BUG
|
|
|
-#define HAVE_ARCH_BUG
|
|
|
|
|
|
#ifdef CONFIG_X86_32
|
|
|
# define __BUG_REL(val) ".long " __stringify(val)
|
|
|
@@ -64,6 +63,13 @@ do { \
|
|
|
|
|
|
#endif /* CONFIG_DEBUG_BUGVERBOSE */
|
|
|
|
|
|
+#else
|
|
|
+
|
|
|
+#define _BUG_FLAGS(ins, flags) asm volatile(ins)
|
|
|
+
|
|
|
+#endif /* CONFIG_GENERIC_BUG */
|
|
|
+
|
|
|
+#define HAVE_ARCH_BUG
|
|
|
#define BUG() \
|
|
|
do { \
|
|
|
_BUG_FLAGS(ASM_UD2, 0); \
|
|
|
@@ -72,8 +78,6 @@ do { \
|
|
|
|
|
|
#define __WARN_TAINT(taint) _BUG_FLAGS(ASM_UD0, BUGFLAG_TAINT(taint))
|
|
|
|
|
|
-#endif /* CONFIG_GENERIC_BUG */
|
|
|
-
|
|
|
#include <asm-generic/bug.h>
|
|
|
|
|
|
#endif /* _ASM_X86_BUG_H */
|