1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00

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

View File

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