From: John Hodge Date: Tue, 6 Aug 2013 01:38:01 +0000 (+0800) Subject: Kernel - Switch to VT7 on kernel panic X-Git-Tag: rel0.15~294 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=61924d93ab4ac53813722ffefbe4d6cf89736ed1;p=tpg%2Facess2.git Kernel - Switch to VT7 on kernel panic --- diff --git a/KernelLand/Kernel/debug.c b/KernelLand/Kernel/debug.c index f0d21fa7..2444cb16 100644 --- a/KernelLand/Kernel/debug.c +++ b/KernelLand/Kernel/debug.c @@ -113,9 +113,13 @@ void Debug_FmtS(int bUseKTerm, const char *format, ...) void Debug_KernelPanic(void) { - #if LOCK_DEBUG_OUTPUT - SHORTREL(&glDebug_Lock); - #endif + if( !gbDebug_IsKPanic ) + { + #if LOCK_DEBUG_OUTPUT + SHORTREL(&glDebug_Lock); + #endif + VT_SetTerminal(7); + } gbDebug_IsKPanic ++; KernelPanic_SetMode(); }