Do not use HPET on i686

This commit is contained in:
Jeremy Soller
2024-03-19 20:44:47 -06:00
parent 66eb3361d3
commit 8f09b4aa06
+5
View File
@@ -25,6 +25,11 @@ pub unsafe fn init_after_acpi() {
unsafe fn init_hpet() -> bool {
use crate::acpi::ACPI_TABLE;
if let Some(ref mut hpet) = *ACPI_TABLE.hpet.write() {
if cfg!(target_arch = "x86") {
//TODO: fix HPET on i686
log::warn!("HPET found but implemented on i686");
return false;
}
hpet::init(hpet)
} else {
false