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
Kernel/debug - Enabled vterm traces, removed threads from panic
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
debug.c
diff --git
a/KernelLand/Kernel/debug.c
b/KernelLand/Kernel/debug.c
index
f0d21fa
..
7e8acba
100644
(file)
--- a/
KernelLand/Kernel/debug.c
+++ b/
KernelLand/Kernel/debug.c
@@
-7,7
+7,7
@@
#define DEBUG_MAX_LINE_LEN 256
#define LOCK_DEBUG_OUTPUT 1 // Avoid interleaving of output lines?
#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?
+#define TRACE_TO_KTERM
1
// Send ENTER/DEBUG/LEAVE to debug?
// === IMPORTS ===
extern void Threads_Dump(void);
// === IMPORTS ===
extern void Threads_Dump(void);
@@
-113,9
+113,16
@@
void Debug_FmtS(int bUseKTerm, const char *format, ...)
void Debug_KernelPanic(void)
{
void Debug_KernelPanic(void)
{
- #if LOCK_DEBUG_OUTPUT
- SHORTREL(&glDebug_Lock);
- #endif
+ if( !gbDebug_IsKPanic )
+ {
+ #if LOCK_DEBUG_OUTPUT
+ SHORTREL(&glDebug_Lock);
+ #endif
+ VT_SetTerminal(7);
+ }
+ // 5 nested panics? Fuck it
+ if( gbDebug_IsKPanic > 5 )
+ for(;;);
gbDebug_IsKPanic ++;
KernelPanic_SetMode();
}
gbDebug_IsKPanic ++;
KernelPanic_SetMode();
}
@@
-243,8
+250,8
@@
void Panic(const char *Fmt, ...)
Debug_Putchar('\r');
Debug_Putchar('\n');
Debug_Putchar('\r');
Debug_Putchar('\n');
- Threads_Dump();
- Heap_Dump();
+
//
Threads_Dump();
+
//
Heap_Dump();
for(;;) ;
}
for(;;) ;
}
UCC
git Repository :: git.ucc.asn.au