it works on real hw

This commit is contained in:
Adrien Bourmault 2019-04-28 11:25:03 +02:00
parent 3748dfbe33
commit 836d967eee
1 changed files with 3 additions and 9 deletions

View File

@ -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();