git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix clean all script for renamed armv7 arch
[tpg/acess2.git]
/
Kernel
/
debug.c
diff --git
a/Kernel/debug.c
b/Kernel/debug.c
index
7209839
..
e799f00
100644
(file)
--- a/
Kernel/debug.c
+++ b/
Kernel/debug.c
@@
-102,6
+102,9
@@
void Debug_FmtS(int bUseKTerm, const char *format, ...)
void Debug_KernelPanic(void)
{
void Debug_KernelPanic(void)
{
+ #if LOCK_DEBUG_OUTPUT
+ SHORTREL(&glDebug_Lock);
+ #endif
gbDebug_IsKPanic = 1;
KernelPanic_SetMode();
}
gbDebug_IsKPanic = 1;
KernelPanic_SetMode();
}
@@
-210,10
+213,7
@@
void Panic(const char *Fmt, ...)
Threads_Dump();
Threads_Dump();
-// __asm__ __volatile__ ("xchg %bx, %bx");
-// __asm__ __volatile__ ("cli;\n\thlt");
-// for(;;) __asm__ __volatile__ ("hlt");
- for(;;) ;
+ for(;;) HALT();
}
void Debug_SetKTerminal(const char *File)
}
void Debug_SetKTerminal(const char *File)
@@
-225,9
+225,9
@@
void Debug_SetKTerminal(const char *File)
VFS_Close(tmp);
}
tmp = VFS_Open(File, VFS_OPENFLAG_WRITE);
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;
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, ...)
}
void Debug_Enter(const char *FuncName, const char *ArgTypes, ...)
UCC
git Repository :: git.ucc.asn.au