Install CustomGuidedSectionExtractionPpi for Tiano or Lzma DeCompression on S3 boot in DxeIpl.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13900 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2012-10-31 08:56:25 +00:00
parent e7a0d41940
commit 25bc832666

View File

@@ -92,27 +92,26 @@ PeimInitializeDxeIpl (
// Ensure that DXE IPL is shadowed to permanent memory. // Ensure that DXE IPL is shadowed to permanent memory.
// //
ASSERT (Status == EFI_ALREADY_STARTED); ASSERT (Status == EFI_ALREADY_STARTED);
}
// //
// Get custom extract guided section method guid list // Get custom extract guided section method guid list
// //
ExtractHandlerNumber = ExtractGuidedSectionGetGuidList (&ExtractHandlerGuidTable); ExtractHandlerNumber = ExtractGuidedSectionGetGuidList (&ExtractHandlerGuidTable);
// //
// Install custom extraction guid PPI // Install custom extraction guid PPI
// //
if (ExtractHandlerNumber > 0) { if (ExtractHandlerNumber > 0) {
GuidPpi = (EFI_PEI_PPI_DESCRIPTOR *) AllocatePool (ExtractHandlerNumber * sizeof (EFI_PEI_PPI_DESCRIPTOR)); GuidPpi = (EFI_PEI_PPI_DESCRIPTOR *) AllocatePool (ExtractHandlerNumber * sizeof (EFI_PEI_PPI_DESCRIPTOR));
ASSERT (GuidPpi != NULL); ASSERT (GuidPpi != NULL);
while (ExtractHandlerNumber-- > 0) { while (ExtractHandlerNumber-- > 0) {
GuidPpi->Flags = EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST; GuidPpi->Flags = EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST;
GuidPpi->Ppi = (VOID *) &mCustomGuidedSectionExtractionPpi; GuidPpi->Ppi = (VOID *) &mCustomGuidedSectionExtractionPpi;
GuidPpi->Guid = &ExtractHandlerGuidTable[ExtractHandlerNumber]; GuidPpi->Guid = &ExtractHandlerGuidTable[ExtractHandlerNumber];
Status = PeiServicesInstallPpi (GuidPpi++); Status = PeiServicesInstallPpi (GuidPpi++);
ASSERT_EFI_ERROR(Status); ASSERT_EFI_ERROR(Status);
}
} }
} }
// //