From 7e2e7b8c21b41cd2686511b0ba01ae3aeb6eb102 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 2 Mar 2022 08:43:11 -0700 Subject: [PATCH] Log reasons why HPET not used --- src/arch/x86_64/device/hpet.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/x86_64/device/hpet.rs b/src/arch/x86_64/device/hpet.rs index 1a6dae9..b53acf1 100644 --- a/src/arch/x86_64/device/hpet.rs +++ b/src/arch/x86_64/device/hpet.rs @@ -21,6 +21,7 @@ static PER_INT_CAP: u64 = 0x10; pub unsafe fn init(hpet: &mut Hpet) -> bool { let capability = hpet.base_address.read_u64(CAPABILITY_OFFSET); if capability & LEG_RT_CAP == 0 { + log::warn!("HPET missing capability LEG_RT_CAP"); return false; } @@ -31,6 +32,7 @@ pub unsafe fn init(hpet: &mut Hpet) -> bool { let t0_capabilities = hpet.base_address.read_u64(T0_CONFIG_CAPABILITY_OFFSET); if t0_capabilities & PER_INT_CAP == 0 { + log::warn!("HPET T0 missing capability PER_INT_CAP"); return false; }