Kernel - Slight reworks to timer code
[tpg/acess2.git] / Kernel / debug.c
index 7209839..355624d 100644 (file)
@@ -37,7 +37,7 @@ tShortSpinlock        glDebug_Lock;
 
 // === CODE ===
 static void Debug_Putchar(char ch)
-{      
+{
        Debug_PutCharDebug(ch);
        if( !gbDebug_IsKPanic )
        {
@@ -102,6 +102,9 @@ void Debug_FmtS(int bUseKTerm, const char *format, ...)
 
 void Debug_KernelPanic(void)
 {
+       #if LOCK_DEBUG_OUTPUT
+       SHORTREL(&glDebug_Lock);
+       #endif
        gbDebug_IsKPanic = 1;
        KernelPanic_SetMode();
 }
@@ -210,9 +213,6 @@ void Panic(const char *Fmt, ...)
 
        Threads_Dump();
 
-//     __asm__ __volatile__ ("xchg %bx, %bx");
-//     __asm__ __volatile__ ("cli;\n\thlt");
-//     for(;;) __asm__ __volatile__ ("hlt");
        for(;;) ;
 }
 
@@ -225,9 +225,9 @@ void Debug_SetKTerminal(const char *File)
                VFS_Close(tmp);
        }
        tmp = VFS_Open(File, VFS_OPENFLAG_WRITE);
-       Log_Log("Debug", "Opened '%s' as 0x%x", File, tmp);
+//     Log_Log("Debug", "Opened '%s' as 0x%x", File, tmp);
        giDebug_KTerm = tmp;
-       Log_Log("Debug", "Returning to %p", __builtin_return_address(0));
+//     Log_Log("Debug", "Returning to %p", __builtin_return_address(0));
 }
 
 void Debug_Enter(const char *FuncName, const char *ArgTypes, ...)

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