Skip to contentSkip to conversation

DEBUG_BUGVERBOSE for i386

PATCH New Adrian Bunk 1 participant 1 message Aug 29, 2004 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DEBUG_BUGVERBOSE for i386

The patch below implements CONFIG_DEBUG_BUGVERBOSE for i386 (more exactly, it allows disabling the verbose BUG() reporting).

lib/Kconfig.debug renamed from lib/Kconfig.debug.old +1 -1
@@ -61,7 +61,7 @@
 
 config DEBUG_BUGVERBOSE
 	bool "Verbose BUG() reporting (adds 70K)"
-	depends on DEBUG_KERNEL && (ARM || ARM26 || M68K || SPARC32 || SPARC64)
+	depends on DEBUG_KERNEL && (ARM || ARM26 || M68K || SPARC32 || SPARC64 || (X86 && !X86_64))
 	help
 	  Say Y here to make BUG() panics output the file name and line number
 	  of the BUG call as well as the EIP and oops trace.  This aids
include/asm-i386/bug.h renamed from include/asm-i386/bug.h.old +1 -1
@@ -9,7 +9,7 @@
  * undefined" opcode for parsing in the trap handler.
  */
 
-#if 1	/* Set to zero for a slightly smaller kernel */
+#ifdef CONFIG_DEBUG_BUGVERBOSE
 #define BUG()				\
  __asm__ __volatile__(	"ud2\n"		\
 			"\t.word %c0\n"	\