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:
vanjeff 2007-12-26 02:43:28 +00:00
parent 106c688f93
commit 50cb16d9ee
1 changed files with 27 additions and 27 deletions

View File

@ -68,7 +68,7 @@ typedef union {
#define PEI_STACK_SIZE 0x20000 #define PEI_STACK_SIZE 0x20000
#define MAX_PPI_DESCRIPTORS 64 #define MAX_PPI_DESCRIPTORS 128
typedef struct { typedef struct {
INTN PpiListEnd; INTN PpiListEnd;
@ -92,7 +92,7 @@ typedef struct {
typedef struct { typedef struct {
EFI_FIRMWARE_VOLUME_HEADER *FvHeader; EFI_FIRMWARE_VOLUME_HEADER *FvHeader;
UINT8 PeimState[FixedPcdGet32 (PcdPeiCoreMaxPeimPerFv)]; UINT8 PeimState[FixedPcdGet32 (PcdPeiCoreMaxPeimPerFv)];
EFI_PEI_FILE_HANDLE FvFileHandles[FixedPcdGet32 (PcdPeiCoreMaxPeimPerFv)]; EFI_PEI_FILE_HANDLE FvFileHandles[FixedPcdGet32 (PcdPeiCoreMaxPeimPerFv)];
BOOLEAN ScanFv; BOOLEAN ScanFv;
} PEI_CORE_FV_HANDLE; } PEI_CORE_FV_HANDLE;
@ -120,7 +120,7 @@ typedef struct{
PEI_CORE_FV_HANDLE Fv[FixedPcdGet32 (PcdPeiCoreMaxFvSupported)]; PEI_CORE_FV_HANDLE Fv[FixedPcdGet32 (PcdPeiCoreMaxFvSupported)];
EFI_PEI_FILE_HANDLE CurrentFvFileHandles[FixedPcdGet32 (PcdPeiCoreMaxPeimPerFv)]; EFI_PEI_FILE_HANDLE CurrentFvFileHandles[FixedPcdGet32 (PcdPeiCoreMaxPeimPerFv)];
UINTN AprioriCount; UINTN AprioriCount;
UINTN CurrentPeimFvCount; UINTN CurrentPeimFvCount;
UINTN CurrentPeimCount; UINTN CurrentPeimCount;
EFI_PEI_FILE_HANDLE CurrentFileHandle; EFI_PEI_FILE_HANDLE CurrentFileHandle;
UINTN AllFvCount; UINTN AllFvCount;
@ -1141,7 +1141,7 @@ Returns:
--*/ --*/
; ;
VOID VOID
PeiInitializeFv ( PeiInitializeFv (
IN PEI_CORE_INSTANCE *PrivateData, IN PEI_CORE_INSTANCE *PrivateData,
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData
@ -1157,9 +1157,9 @@ Arguments:
SecCoreData - Pointer to EFI_SEC_PEI_HAND_OFF. SecCoreData - Pointer to EFI_SEC_PEI_HAND_OFF.
Returns: Returns:
NONE NONE
--*/ --*/
; ;
EFI_STATUS EFI_STATUS
@ -1178,7 +1178,7 @@ Routine Description:
Arguments: Arguments:
PeiServices - General purpose services available to every PEIM. PeiServices - General purpose services available to every PEIM.
Returns: Returns:
Status - EFI_SUCCESS if the interface could be successfully Status - EFI_SUCCESS if the interface could be successfully
@ -1189,7 +1189,7 @@ Returns:
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
PeiFfsFindFileByName ( PeiFfsFindFileByName (
IN CONST EFI_GUID *FileName, IN CONST EFI_GUID *FileName,
IN EFI_PEI_FV_HANDLE VolumeHandle, IN EFI_PEI_FV_HANDLE VolumeHandle,
@ -1209,13 +1209,13 @@ Arguments:
- NULL if file not found - NULL if file not found
Returns: Returns:
EFI_STATUS EFI_STATUS
--*/ --*/
; ;
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
PeiFfsGetFileInfo ( PeiFfsGetFileInfo (
IN EFI_PEI_FILE_HANDLE FileHandle, IN EFI_PEI_FILE_HANDLE FileHandle,
OUT EFI_FV_FILE_INFO *FileInfo OUT EFI_FV_FILE_INFO *FileInfo
@ -1232,12 +1232,12 @@ Arguments:
Returns: Returns:
EFI_STATUS EFI_STATUS
--*/ --*/
; ;
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
PeiFfsGetVolumeInfo ( PeiFfsGetVolumeInfo (
IN EFI_PEI_FV_HANDLE VolumeHandle, IN EFI_PEI_FV_HANDLE VolumeHandle,
OUT EFI_FV_INFO *VolumeInfo OUT EFI_FV_INFO *VolumeInfo
@ -1251,11 +1251,11 @@ Routine Description:
Arguments: Arguments:
VolumeHandle - The handle to Fv Volume. VolumeHandle - The handle to Fv Volume.
VolumeInfo - The pointer to volume information. VolumeInfo - The pointer to volume information.
Returns: Returns:
EFI_STATUS EFI_STATUS
--*/ --*/
; ;
@ -1273,13 +1273,13 @@ Routine Description:
Arguments: Arguments:
FileHandle - File handle of a PEIM. FileHandle - File handle of a PEIM.
Returns: Returns:
EFI_NOT_FOUND - The file handle doesn't point to PEIM itself. EFI_NOT_FOUND - The file handle doesn't point to PEIM itself.
EFI_ALREADY_STARTED - Indicate that the PEIM has been registered itself. EFI_ALREADY_STARTED - Indicate that the PEIM has been registered itself.
EFI_SUCCESS - Successfully to register itself. EFI_SUCCESS - Successfully to register itself.
--*/ --*/
; ;
@ -1288,12 +1288,12 @@ Returns:
discovery permanent memory. discovery permanent memory.
@param FileHandle File handle of a PEIM. @param FileHandle File handle of a PEIM.
@retval EFI_NOT_FOUND The file handle doesn't point to PEIM itself. @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_ALREADY_STARTED Indicate that the PEIM has been registered itself.
@retval EFI_SUCCESS Successfully to register itself. @retval EFI_SUCCESS Successfully to register itself.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
PeiRegisterForShadow ( PeiRegisterForShadow (
@ -1356,8 +1356,8 @@ Arguments:
This parameter must point to a valid FFS volume. This parameter must point to a valid FFS volume.
FileHeader - Pointer to the current file from which to begin searching. FileHeader - Pointer to the current file from which to begin searching.
This pointer will be updated upon return to reflect the file found. 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: Returns:
EFI_NOT_FOUND - No files matching the search criteria were found EFI_NOT_FOUND - No files matching the search criteria were found
EFI_SUCCESS EFI_SUCCESS
@ -1384,8 +1384,8 @@ Arguments:
Returns: Returns:
NONE. NONE.
--*/ --*/
; ;
/** /**
@ -1395,7 +1395,7 @@ Returns:
@param FileHandle File handle of a Fv type file. @param FileHandle File handle of a Fv type file.
@param AuthenticationState Pointer to attestation authentication state of image. @param AuthenticationState Pointer to attestation authentication state of image.
@retval EFI_NOT_FOUND FV image can't be found. @retval EFI_NOT_FOUND FV image can't be found.
@retval EFI_SUCCESS Successfully to process it. @retval EFI_SUCCESS Successfully to process it.