This commit is contained in:
Alex
2022-10-20 05:02:09 +03:00
parent 09d6988853
commit 3dc83ad90f
2 changed files with 3 additions and 2 deletions

View File

@ -259,7 +259,8 @@ namespace APIC
this->lapic->Write(APIC_TIMER, (long)CPU::x64::IRQ0 | (long)APIC_PERIODIC);
this->lapic->Write(APIC_TDCR, 0x3);
this->lapic->Write(APIC_TICR, TicksIn10ms / 10);
debug("APIC Timer (CPU %d): %d ticks in 10ms", CPU::x64::rdmsr(CPU::x64::MSR_FS_BASE), TicksIn10ms / 10);
trace("APIC Timer (CPU %d): %d ticks in 10ms", CPU::x64::rdmsr(CPU::x64::MSR_FS_BASE), TicksIn10ms / 10);
KPrint("APIC Timer: %d ticks in 10ms", TicksIn10ms / 10);
}
Timer::~Timer()