mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 07:24:37 +00:00
Do not divide the APIC if we are debugging
This commit is contained in:
parent
2f3608d864
commit
4fced18138
@ -300,7 +300,10 @@ namespace APIC
|
||||
LVTTimer timer = {.raw = 0};
|
||||
timer.Vector = Vector;
|
||||
timer.TimerMode = 0;
|
||||
this->lapic->Write(APIC_TDCR, DivideBy128);
|
||||
if (strcmp(CPU::Hypervisor(), x86_CPUID_VENDOR_TCG) != 0)
|
||||
this->lapic->Write(APIC_TDCR, DivideBy128);
|
||||
else
|
||||
this->lapic->Write(APIC_TDCR, DivideBy16);
|
||||
this->lapic->Write(APIC_TICR, Ticks * Miliseconds);
|
||||
this->lapic->Write(APIC_TIMER, timer.raw);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user