diff --git a/xtoskrnl/hl/x86/timer.cc b/xtoskrnl/hl/x86/timer.cc index 5c739a8..cb63f6c 100644 --- a/xtoskrnl/hl/x86/timer.cc +++ b/xtoskrnl/hl/x86/timer.cc @@ -190,6 +190,9 @@ HL::Timer::DetectHpet(VOID) HpetFrequency = 14318180; } + /* Enable the HPET main counter and disable legacy replacement */ + Hpet->GeneralConfiguration = (Hpet->GeneralConfiguration & ~HPET_CONFIG_LEGACY_REPLACEMENT) | HPET_CONFIG_ENABLE; + /* Return success */ return STATUS_SUCCESS; }