From cb9f1cfa3aa4c05f515b00f4a287f538b0901552 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 9 Oct 2011 12:20:50 +0800 Subject: [PATCH] Kernel - Cleaning up a little --- Kernel/debug.c | 5 +---- Kernel/time.c | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) 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 === -- 2.20.1