From 836d967eee5fa6758af4d3e95b4fcce98003c5c7 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Sun, 28 Apr 2019 11:25:03 +0200 Subject: [PATCH] it works on real hw --- kaleid/kernel/init/init.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/kaleid/kernel/init/init.c b/kaleid/kernel/init/init.c index 55c4cfb..5efd8d1 100644 --- a/kaleid/kernel/init/init.c +++ b/kaleid/kernel/init/init.c @@ -49,11 +49,6 @@ extern void pstest(void); // interrupts tests extern void divideByZero(void); -void test(void) -{ - asm volatile ("hlt"); -} - // // Entry point of the Kaleid kernel // @@ -91,10 +86,9 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg) IoPrintRtcTime(); KernLog("There was %d ticks\n", IoGetRtcTicks()); - for (uint i = 1; i < 200 ; i++) { - while (IoGetRtcTicks() < i * 10000) { - } - IoPrintRtcTime(); + for (uint i = 1; i < 2048*15 ; i++) { + //IoPrintRtcTime(); + KePauseCPU(); } //divideByZero();