X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=UefiCpuPkg%2FSecCore%2FSecMain.c;fp=UefiCpuPkg%2FSecCore%2FSecMain.c;h=752156a98e2e6ecdd89cd86d8253a155de93f451;hp=d84eb675f593e253a3dac87ccc50693d4f491cdf;hb=1b261a705f947a4abb9024eca307a7c52cc5e6d5;hpb=373c2c5b888d029d7103206556bb85f33d980569 diff --git a/UefiCpuPkg/SecCore/SecMain.c b/UefiCpuPkg/SecCore/SecMain.c index d84eb675f5..752156a98e 100644 --- a/UefiCpuPkg/SecCore/SecMain.c +++ b/UefiCpuPkg/SecCore/SecMain.c @@ -236,11 +236,14 @@ SecStartupPhase2( SecCoreData = (EFI_SEC_PEI_HAND_OFF *) Context; AllSecPpiList = (EFI_PEI_PPI_DESCRIPTOR *) SecCoreData->PeiTemporaryRamBase; + // + // Perform platform specific initialization before entering PeiCore. + // + PpiList = SecPlatformMain (SecCoreData); // // Find Pei Core entry point. It will report SEC and Pei Core debug information if remote debug // is enabled. // - PpiList = SecPlatformMain (SecCoreData); if (PpiList != NULL) { for (Index = 0; (PpiList[Index].Flags & EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST) != EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST; @@ -268,9 +271,6 @@ SecStartupPhase2( } } - // - // Perform platform specific initialization before entering PeiCore. - // if (PpiList != NULL) { // // Remove the terminal flag from the terminal PPI