From: John Hodge Date: Sun, 9 Oct 2011 04:20:50 +0000 (+0800) Subject: Kernel - Cleaning up a little X-Git-Tag: rel0.11~3 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=cb9f1cfa3aa4c05f515b00f4a287f538b0901552;p=tpg%2Facess2.git Kernel - Cleaning up a little --- diff --git a/Kernel/debug.c b/Kernel/debug.c index 1718d209..e799f00f 100644 --- a/Kernel/debug.c +++ b/Kernel/debug.c @@ -213,10 +213,7 @@ void Panic(const char *Fmt, ...) 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) diff --git a/Kernel/time.c b/Kernel/time.c index 3d06b0e7..de439472 100644 --- a/Kernel/time.c +++ b/Kernel/time.c @@ -84,10 +84,8 @@ void Time_RemoveTimer(int ID) */ void Time_Delay(int Delay) { - Sint64 dest = now() + Delay; - //Log("Time_Delay: dest = %lli", dest); + tTime dest = now() + Delay; while(dest > now()) Threads_Yield(); - //Log("Time_Delay: giTimestamp = %lli", giTimestamp); } // === EXPORTS ===