apic: init apic timer using pit, not precise on qemu

This commit is contained in:
2025-09-01 23:22:33 +03:00
parent 982f1a5fae
commit a459751453
5 changed files with 75 additions and 1 deletions
+3
View File
@@ -110,8 +110,11 @@ __attribute__((interrupt)) void spurious(struct interrupt_frame *frame)
lapic_eoi();
}
uint32_t timer_ticks = 0;
__attribute__((interrupt)) void isr_timer(struct interrupt_frame *frame)
{
timer_ticks++;
if(lapic_enabled)
{
lapic_eoi();