Fixing Tegra2 build
[tpg/acess2.git] / Kernel / debug.c
index e0c7af8..25ffda1 100644 (file)
@@ -9,7 +9,7 @@
 
 #define        DEBUG_MAX_LINE_LEN      256
 
-#define        LOCK_DEBUG_OUTPUT       1
+#define        LOCK_DEBUG_OUTPUT       0
 
 #define TRACE_TO_KTERM 0
 
@@ -37,7 +37,7 @@ tShortSpinlock        glDebug_Lock;
 
 // === CODE ===
 static void Debug_Putchar(char ch)
-{      
+{
        Debug_PutCharDebug(ch);
        if( !gbDebug_IsKPanic )
        {
@@ -213,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(;;) ;
 }
 
@@ -228,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