diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2024-09-28 10:01:26 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2024-09-28 10:01:26 -0400 |
commit | 376d7ec265085ae3a77664356a2ad35921cfccaf (patch) | |
tree | b2afd73c602889a59be763542c086371344ecabe /kernel.cpp | |
parent | 8f9329da623bf0812df44f60867180020283ff3f (diff) |
millisecond pit; fix multiboot headers for optimization
Diffstat (limited to 'kernel.cpp')
-rw-r--r-- | kernel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -20,7 +20,7 @@ void kernel_main(void) if (!multiboot_initialize()) for (;;); - idt_register_callback(14, [](const Registers& regs) { + idt_register_callback(14, [](auto& regs) { term.write("Page fault! eip="); term.write(regs.eip); term.write('\n'); @@ -32,14 +32,14 @@ void kernel_main(void) gdt_initialize(); pic_initialize(); idt_initialize(); - pit_initialize(100); + pit_initialize(); asm volatile("sti"); tasking_initialize(); term.write("Tasking enabled.\n"); tasking_spawn([] { for (;;) { - do pit_busy_wait(1); + do pit_delay_ms(1); while (termBusy); termBusy = true; @@ -50,7 +50,7 @@ void kernel_main(void) tasking_spawn([] { for (;;) { - do pit_busy_wait(1); + do pit_delay_ms(1); while (termBusy); termBusy = true; @@ -60,7 +60,7 @@ void kernel_main(void) }, 256); for (;;) { - do pit_busy_wait(1); + do pit_delay_ms(1); while (termBusy); termBusy = true; |