Update PeiCore to handle FvImage with PI FV extension header

Update Capsule PCDs PcdMaxSizePopulateCapsule and  PcdMaxSizeNonPopulateCapsule to the flexible PCD type.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7805 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2009-03-05 05:05:57 +00:00
parent 5bb820af59
commit 97b2c9b514
8 changed files with 62 additions and 38 deletions

View File

@@ -85,6 +85,12 @@ DiscoverPeimsAndOrderWithApriori (
Private->CurrentFvFileHandles[PeimCount] = FileHandle;
}
//
// Check whether the count of Peims exceeds the max support PEIMs in a FV image
// If more Peims are required in a FV image, PcdPeiCoreMaxPeimPerFv can be set to a larger value in DSC file.
//
ASSERT (PeimCount < FixedPcdGet32 (PcdPeiCoreMaxPeimPerFv));
Private->AprioriCount = 0;
if (AprioriFileHandle != NULL) {
@@ -377,7 +383,7 @@ PeiDispatcher (
//
// For Fv type file, Produce new FV PPI and FV hob
//
Status = ProcessFvFile (PeiServices, PeimFileHandle, &AuthenticationState);
Status = ProcessFvFile (PeiServices, VolumeHandle, PeimFileHandle, &AuthenticationState);
} else {
//
// For PEIM driver, Load its entry point