From 426c07f30b15311fcf71f4098ceb70dda52cc1a6 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Sun, 28 Apr 2019 15:37:09 +0200 Subject: [PATCH] OS/K works on real hw --- kaleid/kernel/init/init.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kaleid/kernel/init/init.c b/kaleid/kernel/init/init.c index 5db0b5e..3778576 100644 --- a/kaleid/kernel/init/init.c +++ b/kaleid/kernel/init/init.c @@ -88,7 +88,7 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg) KernLog("There was %d ticks\n", IoGetRtcTicks()); uint i = 0; while (1) { - if (!(i % 2048)) IoPrintRtcTime(); + if (!(i % (2048*5))) IoPrintRtcTime(); KePauseCPU(); i++; } @@ -100,11 +100,3 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg) BFlushBuf(BStdOut); KeCrashSystem(); } - -void label0(void) -{ - KernLog("Goodbye after %d ticks\n", IoGetRtcTicks()); - // End this machine's suffering - BFlushBuf(BStdOut); - KeCrashSystem(); -}