microsoft / mu_tiano_platforms

Project Mu Virtual Platform Firmware
https://microsoft.github.io/mu/
Other
54 stars 49 forks source link

[Bug]: Got wrong CPU count from FdtHelperCountCpus function #1039

Open Joey-Yu-nvt opened 3 weeks ago

Joey-Yu-nvt commented 3 weeks ago

Got wrong CPU count from FdtHelperCountCpus function.

https://github.com/microsoft/mu_tiano_platforms/blob/b5000539d55b6de3e5ec71f538e086f9b9608360/Platforms/QemuSbsaPkg/Library/FdtHelperLib/FdtHelperLib.c#L60

In FDT content, except "/cpus/cpu@0", "/cpus/cpu@1", ... nodes, additional node "/cpus/cpu-map" exists and counted by FdtHelperCountCpus function, but "/cpus/cpu-map" node not corresponds to any specific CPU core.