Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.19 /kernel/panic.c

Filename:/kernel/panic.c
Lines Added:24
Lines Deleted:0
Also changed in: (Previous) 2.4.19-rc5-ac1  2.4.19-rc5  2.4.19-rc4  2.4.19-rc3-ac5  2.4.19-rc3-ac4  2.4.19-rc3 
(Following) 2.4.19-ac1  2.4.19-ac2  2.4.19-ac3  2.4.19-ac4  2.4.20-pre1-ac1  2.4.20-pre1-ac2 

Location
[  2.4.19
  [  kernel
     o  panic.c

Patch

diff -urN linux-2.4.18/kernel/panic.c linux-2.4.19/kernel/panic.c
--- linux-2.4.18/kernel/panic.c   Sun Sep 30 12:26:08 2001
+++ linux-2.4.19/kernel/panic.c   Fri Aug  2 17:39:46 2002
@@ -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 ( ; ; )
+      ;
+}


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.