X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fdebug.c;h=2444cb1604fc568c4f12be8905fe5b1684c1a6a0;hb=b2144260ceb723742e8f8b60ae94ad10c3be63ca;hp=f0d21fa7d7f396e4a8618c29540709aad486c162;hpb=015f48988e0ff398409d71dfc692005ab439490a;p=tpg%2Facess2.git 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(); }