Disable AP if it has the same ID as BSP

This commit is contained in:
Jeremy Soller
2024-04-13 10:01:36 -06:00
parent 5b5b2dbc97
commit 3ad6427e28
+2 -1
View File
@@ -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 {