X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fdebug.c;h=70f503aa4cab40529db76ae6eb9e648f3573bba7;hb=6b5fe5c5491e925bb1dd0d0650eeafd363538b1a;hp=a378ae817b881564da8b48835683bc08be4c159e;hpb=986a763a1f3ee23b2fe3e809e2b5f023d9df6898;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/debug.c b/KernelLand/Kernel/debug.c index a378ae81..70f503aa 100644 --- 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 ) - for(;;); + HALT_CPU(); gbDebug_IsKPanic ++; KernelPanic_SetMode(); } @@ -254,7 +254,7 @@ void Panic(const char *Fmt, ...) //Threads_Dump(); //Heap_Dump(); - for(;;) ; + HALT_CPU(); } void Debug_SetKTerminal(const char *File)