// === CODE ===
static void Debug_Putchar(char ch)
-{
+{
Debug_PutCharDebug(ch);
if( !gbDebug_IsKPanic )
{
void Debug_KernelPanic(void)
{
+ #if LOCK_DEBUG_OUTPUT
+ SHORTREL(&glDebug_Lock);
+ #endif
gbDebug_IsKPanic = 1;
KernelPanic_SetMode();
}
Threads_Dump();
-// __asm__ __volatile__ ("xchg %bx, %bx");
-// __asm__ __volatile__ ("cli;\n\thlt");
-// for(;;) __asm__ __volatile__ ("hlt");
for(;;) ;
}
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, ...)