patch-2.4.19 linux-2.4.19/kernel/panic.c

Next file: linux-2.4.19/kernel/pm.c
Previous file: linux-2.4.19/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/kernel/panic.c linux-2.4.19/kernel/panic.c
@@ -96,6 +96,10 @@
 #endif
 	sti();
 	for(;;) {
+#if defined(__i386__) && defined(CONFIG_VT) 
+		extern void panic_blink(void);
+		panic_blink(); 
+#endif
 		CHECK_EMERGENCY_SYNC
 	}
 }
@@ -120,3 +124,23 @@
 }
 
 int tainted = 0;
+
+/*
+ * A BUG() call in an inline function in a header should be avoided,
+ * because it can seriously bloat the kernel.  So here we have
+ * helper functions.
+ * We lose the BUG()-time file-and-line info this way, but it's
+ * usually not very useful from an inline anyway.  The backtrace
+ * tells us what we want to know.
+ */
+
+void __out_of_line_bug(int line)
+{
+	printk("kernel BUG in header file at line %d\n", line);
+
+	BUG();
+
+	/* Satisfy __attribute__((noreturn)) */
+	for ( ; ; )
+		;
+}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)