]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/SecCore/SecMain.c
UefiCpuPkg/SecCore: Support EFI_PEI_CORE_FV_LOCATION_PPI
[mirror_edk2.git] / UefiCpuPkg / SecCore / SecMain.c
index d84eb675f593e253a3dac87ccc50693d4f491cdf..752156a98e2e6ecdd89cd86d8253a155de93f451 100644 (file)
@@ -236,11 +236,14 @@ SecStartupPhase2(
   SecCoreData   = (EFI_SEC_PEI_HAND_OFF *) Context;\r
   AllSecPpiList = (EFI_PEI_PPI_DESCRIPTOR *) SecCoreData->PeiTemporaryRamBase;\r
 \r
+  //\r
+  // Perform platform specific initialization before entering PeiCore.\r
+  //\r
+  PpiList = SecPlatformMain (SecCoreData);\r
   //\r
   // Find Pei Core entry point. It will report SEC and Pei Core debug information if remote debug\r
   // is enabled.\r
   //\r
-  PpiList = SecPlatformMain (SecCoreData);\r
   if (PpiList != NULL) {\r
     for (Index = 0;\r
       (PpiList[Index].Flags & EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST) != EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST;\r
@@ -268,9 +271,6 @@ SecStartupPhase2(
     }\r
   }\r
 \r
-  //\r
-  // Perform platform specific initialization before entering PeiCore.\r
-  //\r
   if (PpiList != NULL) {\r
     //\r
     // Remove the terminal flag from the terminal PPI\r