audk/UefiCpuPkg/Library/MpInitLib
duntan 2a5c08caaf UefiCpuPkg: set EXTENDED_PROCESSOR_INFORMATION to 0
Set EXTENDED_PROCESSOR_INFORMATION to 0 in API
MpInitLibGetProcessorInfo() of MpInitLibUp. This
commit use ZeroMem() to set all fileds in output
EFI_PROCESSOR_INFORMATION to 0 before StatusFlag
field is reassigned.

Previously EXTENDED_PROCESSOR_INFORMATION in the API
MpInitLibGetProcessorInfo() of MpInitLibUp is ignored.
In PEI/DXE MpInitLib, EXTENDED_PROCESSOR_INFORMATION
will be retrived when BIT24 of input ProcessorNumber
is set. This commit can avoid garbage in the output
structure in MpInitLibGetProcessorInfo() of MpInitLibUp.

Signed-off-by: Dun Tan <dun.tan@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Min Xu <min.m.xu@intel.com>
Message-Id: <20240108050804.1718-2-dun.tan@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2024-01-09 16:31:57 +00:00
..
Ia32 UefiCpuPkg: ApWakeupFunction directly use CpuMpData. 2023-07-11 02:47:27 +00:00
X64 UefiCpuPkg: ApWakeupFunction directly use CpuMpData. 2023-07-11 02:47:27 +00:00
AmdSev.c UefiCpuPkg/MpInitLib: Use AsmCpuidEx() for CPUID_EXTENDED_TOPOLOGY leaf 2023-11-28 11:07:59 +00:00
DxeMpInitLib.inf UefiCpuPkg: Add PcdFirstTimeWakeUpAPsBySipi 2023-08-14 14:40:41 +00:00
DxeMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
DxeMpLib.c UefiCpuPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
Microcode.c UefiCpuPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
MpEqu.inc UefiCpuPkg/MpInitLib: Update the comments of _CPU_MP_DATA. 2023-11-27 05:21:45 +00:00
MpHandOff.h UefiCpuPkg: Correct file description for MpHandOff header file 2023-10-31 20:55:37 +00:00
MpLib.c UefiCpuPkg: set EXTENDED_PROCESSOR_INFORMATION to 0 2024-01-09 16:31:57 +00:00
MpLib.h UefiCpuPkg/MpInitLib: Update the comments of _CPU_MP_DATA. 2023-11-27 05:21:45 +00:00
PeiMpInitLib.inf UefiCpuPkg: Add PcdFirstTimeWakeUpAPsBySipi 2023-08-14 14:40:41 +00:00
PeiMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
PeiMpLib.c UefiCpuPkg: Create MpHandOff. 2023-07-11 02:47:27 +00:00