audk/UefiCpuPkg/Library/MpInitLib
Lendacky, Thomas 6933c78e4d UefiCpuPkg/MpInitLib: Properly cast from PCD to SEV-ES jump table pointer
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3385

A VS2012 build fails with a cast conversion warning when the SEV-ES work
area PCD is cast as a pointer to the SEV_ES_AP_JMP_FAR type.

When casting from a PCD value to a pointer, the cast should first be done
to a UINTN and then to the pointer. Update the code to perform a cast to
a UINTN before casting to a pointer to the SEV_ES_AP_JMP_FAR type.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Fixes: 7b7508ad78
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <c89bc819856d448360430c32cb3833a9667f987b.1620656694.git.thomas.lendacky@amd.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2021-05-11 17:45:40 +00:00
..
Ia32 UefiCpuPkg/MpInitLib: Remove unused Lock from MP_CPU_EXCHANGE_INFO 2021-03-08 02:22:37 +00:00
X64 UefiCpuPkg/MpInitLib: Remove unused Lock from MP_CPU_EXCHANGE_INFO 2021-03-08 02:22:37 +00:00
DxeMpInitLib.inf UefiCpuPkg/MpInitLib: Consume MicrocodeLib to remove duplicated code 2021-04-09 01:43:18 +00:00
DxeMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
DxeMpLib.c UefiCpuPkg, OvmfPkg: Disable interrupts when using the GHCB 2020-11-10 19:07:55 +00:00
Microcode.c UefiCpuPkg/MpInitLib: Consume MicrocodeLib to remove duplicated code 2021-04-09 01:43:18 +00:00
MpEqu.inc UefiCpuPkg/MpInitLib: Remove unused Lock from MP_CPU_EXCHANGE_INFO 2021-03-08 02:22:37 +00:00
MpLib.c UefiCpuPkg/MpInitLib: Properly cast from PCD to SEV-ES jump table pointer 2021-05-11 17:45:40 +00:00
MpLib.h UefiCpuPkg/MpInitLib: Consume MicrocodeLib to remove duplicated code 2021-04-09 01:43:18 +00:00
PeiMpInitLib.inf UefiCpuPkg/MpInitLib: Consume MicrocodeLib to remove duplicated code 2021-04-09 01:43:18 +00:00
PeiMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
PeiMpLib.c UefiCpuPkg: Allow AP booting under SEV-ES 2020-08-17 02:46:39 +00:00