summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Workspace/InfBuildData.py
diff options
context:
space:
mode:
authorTom Lendacky <thomas.lendacky@amd.com>2023-11-07 01:45:30 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-11-28 14:07:59 +0300
commit447798cd3a78c8bfc5adb90254d50d22a838b301 (patch)
tree4a5b1dcd0a236f6d8b33cb3a94fb9994d7a0c84d /BaseTools/Source/Python/Workspace/InfBuildData.py
parentd451bba399687b4102459db5a447fc9abb8fdee1 (diff)
downloadedk2-447798cd3a78c8bfc5adb90254d50d22a838b301.tar.xz
UefiCpuPkg/MpInitLib: Use AsmCpuidEx() for CPUID_EXTENDED_TOPOLOGY leaf
The CPUID_EXTENDED_TOPOLOGY CPUID leaf takes a subleaf as input when returning CPUID information. However, the AsmCpuid() function does not zero out ECX before the CPUID instruction, so the input leaf is used as the sub-leaf for the CPUID request and returns erroneous/invalid CPUID data, since the intent of the request was to get data related to sub-leaf 0. Instead, use AsmCpuidEx() for the CPUID_EXTENDED_TOPOLOGY leaf. Fixes: d4d7c9ad5fe5 ("UefiCpuPkg/MpInitLib: use BSP to do extended ...") Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/InfBuildData.py')
0 files changed, 0 insertions, 0 deletions