From 61924d93ab4ac53813722ffefbe4d6cf89736ed1 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 6 Aug 2013 09:38:01 +0800 Subject: [PATCH] Kernel - Switch to VT7 on kernel panic --- KernelLand/Kernel/debug.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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(); } -- 2.20.1