From: John Hodge Date: Sat, 10 Aug 2013 12:09:21 +0000 (+0800) Subject: Kernel - Caught infinite kernel panics X-Git-Tag: rel0.15~283 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=d0ab557dc2626075d0ee0a2d25be74f51249b842;p=tpg%2Facess2.git Kernel - Caught infinite kernel panics --- diff --git a/KernelLand/Kernel/debug.c b/KernelLand/Kernel/debug.c index 2444cb16..c9a29647 100644 --- a/KernelLand/Kernel/debug.c +++ b/KernelLand/Kernel/debug.c @@ -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(); }