From d0ab557dc2626075d0ee0a2d25be74f51249b842 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 10 Aug 2013 20:09:21 +0800 Subject: [PATCH] Kernel - Caught infinite kernel panics --- KernelLand/Kernel/debug.c | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- 2.20.1