// === IMPORTS ===
extern void Threads_Dump(void);
-extern void Heap_Dump(void)
- ;
+extern void Heap_Dump(void);
extern void KernelPanic_SetMode(void);
extern void KernelPanic_PutChar(char Ch);
extern void IPStack_SendDebugText(const char *Text);
void Debug_FmtS(int bUseKTerm, const char *format, ...);
void Debug_Fmt(int bUseKTerm, const char *format, va_list args);
void Debug_SetKTerminal(const char *File);
-void LogFV(const char *Fmt, va_list args);
// === GLOBALS ===
int gDebug_Level = 0;
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();
}