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 - Replaced for(;;); in panic with HALT_CPU macro
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
debug.c
diff --git
a/KernelLand/Kernel/debug.c
b/KernelLand/Kernel/debug.c
index
a378ae8
..
70f503a
100644
(file)
--- a/
KernelLand/Kernel/debug.c
+++ b/
KernelLand/Kernel/debug.c
@@
-123,7
+123,7
@@
void Debug_KernelPanic(void)
}
// 5 nested panics? Fuck it
if( gbDebug_IsKPanic > 5 )
}
// 5 nested panics? Fuck it
if( gbDebug_IsKPanic > 5 )
-
for(;;
);
+
HALT_CPU(
);
gbDebug_IsKPanic ++;
KernelPanic_SetMode();
}
gbDebug_IsKPanic ++;
KernelPanic_SetMode();
}
@@
-254,7
+254,7
@@
void Panic(const char *Fmt, ...)
//Threads_Dump();
//Heap_Dump();
//Threads_Dump();
//Heap_Dump();
-
for(;;)
;
+
HALT_CPU()
;
}
void Debug_SetKTerminal(const char *File)
}
void Debug_SetKTerminal(const char *File)
UCC
git Repository :: git.ucc.asn.au