Re: [edk2-devel] [PATCH 1/2] UefiCpuPkg: Duplicated AsmRelocateApLoop as AsmRelocateApLoopAmd

2022-12-14 Thread Ni, Ray
1. > + if (StandardSignatureIsAuthenticAMD ()) { > +StackStart = CpuMpData->SevEsAPResetStackStart; CpuMpData->SevEsAPResetStackStart is not always allocated when CPU is AMD. How about to use the following code: if (StandardSignatureIsAuthenticAMD ()) { StackStart

[edk2-devel] [PATCH 1/2] UefiCpuPkg: Duplicated AsmRelocateApLoop as AsmRelocateApLoopAmd

2022-12-13 Thread Yuanhao Xie
AsmRelocateApLoop is replicated for future Intel Logic Extraction, further brings AP into 64-bit, and enables paging. Signed-off-by: Yuanhao Xie --- UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 51 +++ UefiCpuPkg/Library/MpInitLib/MpEqu.inc