Kernel - Caught infinite kernel panics
authorJohn Hodge <[email protected]>
Sat, 10 Aug 2013 12:09:21 +0000 (20:09 +0800)
committerJohn Hodge <[email protected]>
Sat, 10 Aug 2013 12:09:21 +0000 (20:09 +0800)
KernelLand/Kernel/debug.c

index 2444cb1..c9a2964 100644 (file)
@@ -120,6 +120,9 @@ void Debug_KernelPanic(void)
                #endif
                VT_SetTerminal(7);
        }
+       // 5 nested panics? Fuck it
+       if( gbDebug_IsKPanic > 5 )
+               for(;;);
        gbDebug_IsKPanic ++;
        KernelPanic_SetMode();
 }

UCC git Repository :: git.ucc.asn.au