From 8f09b4aa066fb01b6374f9c50e96982da282d101 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 19 Mar 2024 20:44:47 -0600 Subject: [PATCH] Do not use HPET on i686 --- src/arch/x86_shared/device/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/arch/x86_shared/device/mod.rs b/src/arch/x86_shared/device/mod.rs index 60dfc43440..dd2f0903cb 100644 --- a/src/arch/x86_shared/device/mod.rs +++ b/src/arch/x86_shared/device/mod.rs @@ -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