mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
it works on real hw
This commit is contained in:
parent
3748dfbe33
commit
836d967eee
@ -49,11 +49,6 @@ extern void pstest(void);
|
|||||||
// interrupts tests
|
// interrupts tests
|
||||||
extern void divideByZero(void);
|
extern void divideByZero(void);
|
||||||
|
|
||||||
void test(void)
|
|
||||||
{
|
|
||||||
asm volatile ("hlt");
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Entry point of the Kaleid kernel
|
// Entry point of the Kaleid kernel
|
||||||
//
|
//
|
||||||
@ -91,10 +86,9 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
|
|||||||
IoPrintRtcTime();
|
IoPrintRtcTime();
|
||||||
|
|
||||||
KernLog("There was %d ticks\n", IoGetRtcTicks());
|
KernLog("There was %d ticks\n", IoGetRtcTicks());
|
||||||
for (uint i = 1; i < 200 ; i++) {
|
for (uint i = 1; i < 2048*15 ; i++) {
|
||||||
while (IoGetRtcTicks() < i * 10000) {
|
//IoPrintRtcTime();
|
||||||
}
|
KePauseCPU();
|
||||||
IoPrintRtcTime();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//divideByZero();
|
//divideByZero();
|
||||||
|
Loading…
Reference in New Issue
Block a user