Kernel/arch - Fix common division macro to handle numerators around datatype max
[tpg/acess2.git] / KernelLand / Kernel / debug.c
index db67f49..d0de25a 100644 (file)
@@ -4,17 +4,17 @@
  */
 #include <acess.h>
 #include <stdarg.h>
+#include <debug_hooks.h>
 
 #define        DEBUG_MAX_LINE_LEN      256
 #define        LOCK_DEBUG_OUTPUT       1       // Avoid interleaving of output lines?
 #define TRACE_TO_KTERM         0       // Send ENTER/DEBUG/LEAVE to debug?
 
 // === IMPORTS ===
-extern void    Threads_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);
+extern void    VT_SetTerminal(int TerminalID);
 
 // === PROTOTYPES ===
 static void    Debug_Putchar(char ch);
@@ -114,6 +114,7 @@ void Debug_FmtS(int bUseKTerm, const char *format, ...)
 
 void Debug_KernelPanic(void)
 {
+       // 5 nested panics? Fuck it
        if( gbDebug_IsKPanic > 5 )
                HALT_CPU();
        gbDebug_IsKPanic ++;
@@ -124,7 +125,6 @@ void Debug_KernelPanic(void)
                #endif
                VT_SetTerminal(7);
        }
-       // 5 nested panics? Fuck it
        KernelPanic_SetMode();
 }
 

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