Enable HPET main counter and disable legacy replacement during hardware detection

This commit is contained in:
2026-05-09 13:13:30 +02:00
parent 976eee9ce3
commit 6b14f31107

View File

@@ -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;
}