OS/K works on real hw

This commit is contained in:
Adrien Bourmault 2019-04-28 15:37:09 +02:00
parent 404f1ab20c
commit 426c07f30b
1 changed files with 1 additions and 9 deletions

View File

@ -88,7 +88,7 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
KernLog("There was %d ticks\n", IoGetRtcTicks()); KernLog("There was %d ticks\n", IoGetRtcTicks());
uint i = 0; uint i = 0;
while (1) { while (1) {
if (!(i % 2048)) IoPrintRtcTime(); if (!(i % (2048*5))) IoPrintRtcTime();
KePauseCPU(); KePauseCPU();
i++; i++;
} }
@ -100,11 +100,3 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
BFlushBuf(BStdOut); BFlushBuf(BStdOut);
KeCrashSystem(); KeCrashSystem();
} }
void label0(void)
{
KernLog("Goodbye after %d ticks\n", IoGetRtcTicks());
// End this machine's suffering
BFlushBuf(BStdOut);
KeCrashSystem();
}