Disable AP if it has the same ID as BSP
This commit is contained in:
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user