]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
remove building of EFI_SEC_PLATFORM_INFORMATION_PPI GUIDed HOB from PEI core. Platfor...
[mirror_edk2.git] / MdeModulePkg / Core / Pei / PeiMain / PeiMain.c
index 7f7a8cf670e3c2c47856bd31de112807d0c4f0de..1dd7ed3d4f577af1c926afd3b73971daf3167ba8 100644 (file)
@@ -122,9 +122,6 @@ Returns:
   PEI_CORE_INSTANCE                                     *OldCoreData;\r
   EFI_PEI_CPU_IO_PPI                                    *CpuIo;\r
   EFI_PEI_PCI_CFG2_PPI                                  *PciCfg;\r
-  UINT64                                                SecPlatformInfoRecordSize;\r
-  EFI_SEC_PLATFORM_INFORMATION_PPI                      *SecPlatformInfoPpi;\r
-  EFI_SEC_PLATFORM_INFORMATION_RECORD                   *SecPlatformInfoRecord;\r
 \r
   mTick = 0;\r
   OldCoreData = (PEI_CORE_INSTANCE *) Data;\r
@@ -231,37 +228,6 @@ Returns:
     if (PpiList != NULL) {\r
       Status = PeiServicesInstallPpi (PpiList);\r
       ASSERT_EFI_ERROR (Status);\r
-      \r
-      //\r
-      // PI spec Vol 1, 7.3.1 specifies that this same information reported by EFI_SEC_PLATFORM_INFORMATION_PPI\r
-      // will be placed in a GUIDed HOB with the PPI GUID as the HOB GUID for HOB consumer phase.\r
-      //\r
-      Status = PeiServicesLocatePpi (\r
-                 &gEfiSecPlatformInformationPpiGuid,\r
-                 0,\r
-                 NULL,\r
-                 (VOID **) &SecPlatformInfoPpi\r
-                 );\r
-      if (!EFI_ERROR (Status)) {\r
-        SecPlatformInfoRecord = AllocateZeroPool (sizeof(*SecPlatformInfoRecord));\r
-        ASSERT (SecPlatformInfoRecord != NULL);\r
-\r
-        SecPlatformInfoRecordSize = sizeof(*SecPlatformInfoRecord);\r
-        \r
-        Status = SecPlatformInfoPpi->PlatformInformation (\r
-                   (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (),\r
-                   &SecPlatformInfoRecordSize,\r
-                   SecPlatformInfoRecord\r
-                   );\r
-        \r
-        if (!EFI_ERROR (Status)) {\r
-          BuildGuidDataHob (\r
-            &gEfiSecPlatformInformationPpiGuid,\r
-            SecPlatformInfoRecord,\r
-            sizeof (*SecPlatformInfoRecord)\r
-            );\r
-        }\r
-      }\r
     }\r
   }\r
 \r