Kernel - Switch to VT7 on kernel panic
authorJohn Hodge <[email protected]>
Tue, 6 Aug 2013 01:38:01 +0000 (09:38 +0800)
committerJohn Hodge <[email protected]>
Tue, 6 Aug 2013 01:38:01 +0000 (09:38 +0800)
KernelLand/Kernel/debug.c

index f0d21fa..2444cb1 100644 (file)
@@ -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();
 }

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