apic: init apic timer using pit, not precise on qemu
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user