mirror of https://github.com/acidanthera/audk.git
Fixed the bug that the PPI descriptor number defined in PeiCore.h is not enough to hold all the PPI and PPI notifies.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4435 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
106c688f93
commit
50cb16d9ee
|
@ -68,7 +68,7 @@ typedef union {
|
|||
|
||||
#define PEI_STACK_SIZE 0x20000
|
||||
|
||||
#define MAX_PPI_DESCRIPTORS 64
|
||||
#define MAX_PPI_DESCRIPTORS 128
|
||||
|
||||
typedef struct {
|
||||
INTN PpiListEnd;
|
||||
|
@ -92,7 +92,7 @@ typedef struct {
|
|||
|
||||
typedef struct {
|
||||
EFI_FIRMWARE_VOLUME_HEADER *FvHeader;
|
||||
UINT8 PeimState[FixedPcdGet32 (PcdPeiCoreMaxPeimPerFv)];
|
||||
UINT8 PeimState[FixedPcdGet32 (PcdPeiCoreMaxPeimPerFv)];
|
||||
EFI_PEI_FILE_HANDLE FvFileHandles[FixedPcdGet32 (PcdPeiCoreMaxPeimPerFv)];
|
||||
BOOLEAN ScanFv;
|
||||
} PEI_CORE_FV_HANDLE;
|
||||
|
@ -120,7 +120,7 @@ typedef struct{
|
|||
PEI_CORE_FV_HANDLE Fv[FixedPcdGet32 (PcdPeiCoreMaxFvSupported)];
|
||||
EFI_PEI_FILE_HANDLE CurrentFvFileHandles[FixedPcdGet32 (PcdPeiCoreMaxPeimPerFv)];
|
||||
UINTN AprioriCount;
|
||||
UINTN CurrentPeimFvCount;
|
||||
UINTN CurrentPeimFvCount;
|
||||
UINTN CurrentPeimCount;
|
||||
EFI_PEI_FILE_HANDLE CurrentFileHandle;
|
||||
UINTN AllFvCount;
|
||||
|
@ -1141,7 +1141,7 @@ Returns:
|
|||
--*/
|
||||
;
|
||||
|
||||
VOID
|
||||
VOID
|
||||
PeiInitializeFv (
|
||||
IN PEI_CORE_INSTANCE *PrivateData,
|
||||
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData
|
||||
|
@ -1157,9 +1157,9 @@ Arguments:
|
|||
SecCoreData - Pointer to EFI_SEC_PEI_HAND_OFF.
|
||||
|
||||
Returns:
|
||||
NONE
|
||||
|
||||
--*/
|
||||
NONE
|
||||
|
||||
--*/
|
||||
;
|
||||
|
||||
EFI_STATUS
|
||||
|
@ -1178,7 +1178,7 @@ Routine Description:
|
|||
Arguments:
|
||||
|
||||
PeiServices - General purpose services available to every PEIM.
|
||||
|
||||
|
||||
Returns:
|
||||
|
||||
Status - EFI_SUCCESS if the interface could be successfully
|
||||
|
@ -1189,7 +1189,7 @@ Returns:
|
|||
|
||||
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
EFIAPI
|
||||
PeiFfsFindFileByName (
|
||||
IN CONST EFI_GUID *FileName,
|
||||
IN EFI_PEI_FV_HANDLE VolumeHandle,
|
||||
|
@ -1209,13 +1209,13 @@ Arguments:
|
|||
- NULL if file not found
|
||||
Returns:
|
||||
EFI_STATUS
|
||||
|
||||
--*/
|
||||
|
||||
--*/
|
||||
;
|
||||
|
||||
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
EFIAPI
|
||||
PeiFfsGetFileInfo (
|
||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||
OUT EFI_FV_FILE_INFO *FileInfo
|
||||
|
@ -1232,12 +1232,12 @@ Arguments:
|
|||
|
||||
Returns:
|
||||
EFI_STATUS
|
||||
|
||||
--*/
|
||||
|
||||
--*/
|
||||
;
|
||||
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
EFIAPI
|
||||
PeiFfsGetVolumeInfo (
|
||||
IN EFI_PEI_FV_HANDLE VolumeHandle,
|
||||
OUT EFI_FV_INFO *VolumeInfo
|
||||
|
@ -1251,11 +1251,11 @@ Routine Description:
|
|||
Arguments:
|
||||
VolumeHandle - The handle to Fv Volume.
|
||||
VolumeInfo - The pointer to volume information.
|
||||
|
||||
|
||||
Returns:
|
||||
EFI_STATUS
|
||||
|
||||
--*/
|
||||
|
||||
--*/
|
||||
;
|
||||
|
||||
|
||||
|
@ -1273,13 +1273,13 @@ Routine Description:
|
|||
|
||||
Arguments:
|
||||
FileHandle - File handle of a PEIM.
|
||||
|
||||
|
||||
Returns:
|
||||
EFI_NOT_FOUND - The file handle doesn't point to PEIM itself.
|
||||
EFI_ALREADY_STARTED - Indicate that the PEIM has been registered itself.
|
||||
EFI_SUCCESS - Successfully to register itself.
|
||||
|
||||
--*/
|
||||
--*/
|
||||
;
|
||||
|
||||
|
||||
|
@ -1288,12 +1288,12 @@ Returns:
|
|||
discovery permanent memory.
|
||||
|
||||
@param FileHandle File handle of a PEIM.
|
||||
|
||||
|
||||
@retval EFI_NOT_FOUND The file handle doesn't point to PEIM itself.
|
||||
@retval EFI_ALREADY_STARTED Indicate that the PEIM has been registered itself.
|
||||
@retval EFI_SUCCESS Successfully to register itself.
|
||||
|
||||
**/
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PeiRegisterForShadow (
|
||||
|
@ -1356,8 +1356,8 @@ Arguments:
|
|||
This parameter must point to a valid FFS volume.
|
||||
FileHeader - Pointer to the current file from which to begin searching.
|
||||
This pointer will be updated upon return to reflect the file found.
|
||||
Flag - Indicator for if this is for PEI Dispath search
|
||||
|
||||
Flag - Indicator for if this is for PEI Dispath search
|
||||
|
||||
Returns:
|
||||
EFI_NOT_FOUND - No files matching the search criteria were found
|
||||
EFI_SUCCESS
|
||||
|
@ -1384,8 +1384,8 @@ Arguments:
|
|||
Returns:
|
||||
|
||||
NONE.
|
||||
|
||||
--*/
|
||||
|
||||
--*/
|
||||
;
|
||||
|
||||
/**
|
||||
|
@ -1395,7 +1395,7 @@ Returns:
|
|||
@param FileHandle File handle of a Fv type file.
|
||||
@param AuthenticationState Pointer to attestation authentication state of image.
|
||||
|
||||
|
||||
|
||||
@retval EFI_NOT_FOUND FV image can't be found.
|
||||
@retval EFI_SUCCESS Successfully to process it.
|
||||
|
||||
|
|
Loading…
Reference in New Issue