summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-11-29 11:01:47 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-11-29 11:01:47 +0000
commit9a6b83a4adae9947d95df22cee8b16ae6ebe024d (patch)
tree7fb10c109e8a3e8d35f3048259980b5d93733b5c /MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
parentafd0fe223066cfae5eac42bc5751eb3d0a758096 (diff)
downloadedk2-platforms-9a6b83a4adae9947d95df22cee8b16ae6ebe024d.tar.xz
remove building of EFI_SEC_PLATFORM_INFORMATION_PPI GUIDed HOB from PEI core. Platform module is a better place for size and performance consideration.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4344 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Pei/PeiMain/PeiMain.c')
-rw-r--r--MdeModulePkg/Core/Pei/PeiMain/PeiMain.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c b/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
index 7f7a8cf670..1dd7ed3d4f 100644
--- a/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
+++ b/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
@@ -122,9 +122,6 @@ Returns:
PEI_CORE_INSTANCE *OldCoreData;
EFI_PEI_CPU_IO_PPI *CpuIo;
EFI_PEI_PCI_CFG2_PPI *PciCfg;
- UINT64 SecPlatformInfoRecordSize;
- EFI_SEC_PLATFORM_INFORMATION_PPI *SecPlatformInfoPpi;
- EFI_SEC_PLATFORM_INFORMATION_RECORD *SecPlatformInfoRecord;
mTick = 0;
OldCoreData = (PEI_CORE_INSTANCE *) Data;
@@ -231,37 +228,6 @@ Returns:
if (PpiList != NULL) {
Status = PeiServicesInstallPpi (PpiList);
ASSERT_EFI_ERROR (Status);
-
- //
- // PI spec Vol 1, 7.3.1 specifies that this same information reported by EFI_SEC_PLATFORM_INFORMATION_PPI
- // will be placed in a GUIDed HOB with the PPI GUID as the HOB GUID for HOB consumer phase.
- //
- Status = PeiServicesLocatePpi (
- &gEfiSecPlatformInformationPpiGuid,
- 0,
- NULL,
- (VOID **) &SecPlatformInfoPpi
- );
- if (!EFI_ERROR (Status)) {
- SecPlatformInfoRecord = AllocateZeroPool (sizeof(*SecPlatformInfoRecord));
- ASSERT (SecPlatformInfoRecord != NULL);
-
- SecPlatformInfoRecordSize = sizeof(*SecPlatformInfoRecord);
-
- Status = SecPlatformInfoPpi->PlatformInformation (
- (CONST EFI_PEI_SERVICES **) GetPeiServicesTablePointer (),
- &SecPlatformInfoRecordSize,
- SecPlatformInfoRecord
- );
-
- if (!EFI_ERROR (Status)) {
- BuildGuidDataHob (
- &gEfiSecPlatformInformationPpiGuid,
- SecPlatformInfoRecord,
- sizeof (*SecPlatformInfoRecord)
- );
- }
- }
}
}