From 3ad6427e281a5fbb1c5f9ae3f0ce1ddf69ddfc33 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sat, 13 Apr 2024 10:01:36 -0600 Subject: [PATCH] Disable AP if it has the same ID as BSP --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d90f0d480b..eb88994a52 100644 --- a/src/main.rs +++ b/src/main.rs @@ -219,7 +219,8 @@ fn kmain_ap(cpu_id: crate::cpu_set::LogicalCpuId) -> ! { #[cfg(feature = "profiling")] profiling::maybe_run_profiling_helper_forever(cpu_id); - if !cfg!(feature = "multi_core") { + //TODO: workaround for bug where an AP on MeteorLake has cpu_id 0 + if !cfg!(feature = "multi_core") || cpu_id == crate::cpu_set::LogicalCpuId::BSP { info!("AP {}: Disabled", cpu_id); loop {