Update PEIM entry point to follow PEIM entry point.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6753 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2008-11-27 05:18:32 +00:00
parent 067447099c
commit 8bd22b8aaa
7 changed files with 27 additions and 32 deletions

View File

@ -15,8 +15,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#include <Guid/CustomDecompress.h>
#include "BaseUefiTianoCustomDecompressLibInternals.h"
#include <Guid/CustomDecompress.h>
/**
Shift mBitBuf NumOfBits left. Read in NumOfBits of bits from source.
@ -815,7 +815,7 @@ TianoDecompress (
@retval RETURN_SUCCESS Register successfully.
@retval RETURN_OUT_OF_RESOURCES No enough memory to store this handler.
**/
EFI_STATUS
RETURN_STATUS
EFIAPI
TianoDecompressLibConstructor (
)

View File

@ -265,15 +265,16 @@ PciCfg2Modify (
This routine will install EFI_PEI_PCI_CFG2_PPI or EFI_PEI_PCI_CFG_PPI
according to PeiServices's version.
@param FfsHeader Image's header
@param PeiServices Pointer of EFI_PEI_SERVICES
@param FileHandle Handle of the file being invoked.
@param PeiServices Describes the list of possible PEI Services.
@return Whether success to install service
**/
EFI_STATUS
EFIAPI
PeimInitializePciCfg (
IN EFI_FFS_FILE_HEADER *FfsHeader,
IN EFI_PEI_SERVICES **PeiServices
IN EFI_PEI_FILE_HANDLE FileHandle,
IN CONST EFI_PEI_SERVICES **PeiServices
)
{
EFI_STATUS Status;
@ -292,16 +293,16 @@ PeimInitializePciCfg (
// FrameworkPeiServices = (FRAMEWORK_PEI_SERVICES **) PeiServices;
// (**FrameworkPeiServices).PciCfg = &mPciCfgPpi;
//
(**PeiServices).PciCfg = (EFI_PEI_PCI_CFG2_PPI *) &gPciCfgPpi;
(**(EFI_PEI_SERVICES**)PeiServices).PciCfg = (EFI_PEI_PCI_CFG2_PPI *) &gPciCfgPpi;
} else {
(**PeiServices).PciCfg = &gPciCfg2Ppi;
(**(EFI_PEI_SERVICES**)PeiServices).PciCfg = &gPciCfg2Ppi;
}
if (!FeaturePcdGet (PcdPciCfgDisable)) {
Status = (**PeiServices).InstallPpi ((CONST EFI_PEI_SERVICES **)PeiServices, &gPciCfgPpiList);
Status = (**PeiServices).InstallPpi (PeiServices, &gPciCfgPpiList);
}
if (!FeaturePcdGet (PcdPciCfg2Disable)) {
Status = (**PeiServices).InstallPpi ((CONST EFI_PEI_SERVICES **)PeiServices, &gPciCfg2PpiList);
Status = (**PeiServices).InstallPpi (PeiServices, &gPciCfg2PpiList);
}
return Status;

View File

@ -98,16 +98,16 @@ ReportDispatcher (
Initialize PEI status codes and publish the status code
PPI.
@param FfsHeader FV this PEIM was loaded from.
@param PeiServices General purpose services available to every PEIM.
@param FileHandle Handle of the file being invoked.
@param PeiServices Describes the list of possible PEI Services.
@return The function always returns success.
**/
EFI_STATUS
PeiStatusCodeDriverEntry (
IN EFI_FFS_FILE_HEADER *FfsHeader,
IN EFI_PEI_SERVICES **PeiServices
IN EFI_PEI_FILE_HANDLE FileHandle,
IN CONST EFI_PEI_SERVICES **PeiServices
)
{
EFI_STATUS Status;

View File

@ -47,8 +47,8 @@ EFI_GUID mEfiVariableIndexTableGuid = EFI_VARIABLE_INDEX_TABLE_GUID;
/**
Provide the functionality of the variable services.
@param FfsHeadher - The FFS file header
@param PeiServices - General purpose services available to every PEIM.
@param FileHandle Handle of the file being invoked.
@param PeiServices Describes the list of possible PEI Services.
@return Status - EFI_SUCCESS if the interface could be successfully
installed
@ -57,14 +57,14 @@ EFI_GUID mEfiVariableIndexTableGuid = EFI_VARIABLE_INDEX_TABLE_GUID;
EFI_STATUS
EFIAPI
PeimInitializeVariableServices (
IN EFI_FFS_FILE_HEADER *FfsHeader,
IN EFI_PEI_SERVICES **PeiServices
IN EFI_PEI_FILE_HANDLE FileHandle,
IN CONST EFI_PEI_SERVICES **PeiServices
)
{
//
// Publish the variable capability to other modules
//
return (**PeiServices).InstallPpi ((CONST EFI_PEI_SERVICES **) PeiServices, &mPpiListVariable[0]);
return (**PeiServices).InstallPpi (PeiServices, &mPpiListVariable[0]);
}

View File

@ -59,12 +59,6 @@ typedef struct {
//
// Functions
//
EFI_STATUS
EFIAPI
PeimInitializeVariableServices (
IN EFI_FFS_FILE_HEADER *FfsHeader,
IN EFI_PEI_SERVICES **PeiServices
);
EFI_STATUS
EFIAPI

View File

@ -65,8 +65,8 @@ EFI_PEI_PPI_DESCRIPTOR mPpiPCD = {
This routine initialize the PCD database for PEI phase and install PCD_PPI.
@param FfsHeader Pointer to PEIM FFS header image
@param PeiServices Pointer to EFI_PEI_SERVICES
@param FileHandle Handle of the file being invoked.
@param PeiServices Describes the list of possible PEI Services.
@return Status of install PCD_PPI
@ -74,8 +74,8 @@ EFI_PEI_PPI_DESCRIPTOR mPpiPCD = {
EFI_STATUS
EFIAPI
PcdPeimInit (
IN EFI_FFS_FILE_HEADER *FfsHeader,
IN EFI_PEI_SERVICES **PeiServices
IN EFI_PEI_FILE_HANDLE FileHandle,
IN CONST EFI_PEI_SERVICES **PeiServices
)
{
BuildPcdDatabase ();

View File

@ -355,15 +355,15 @@ PciCfg2Modify (
EFI_STATUS
EFIAPI
PeimInitializePciCfg (
IN EFI_FFS_FILE_HEADER *FfsHeader,
IN EFI_PEI_SERVICES **PeiServices
IN EFI_PEI_FILE_HANDLE FileHandle,
IN CONST EFI_PEI_SERVICES **PeiServices
)
{
EFI_STATUS Status;
ASSERT ((**PeiServices).Hdr.Revision >= PEI_SERVICES_REVISION);
(**PeiServices).PciCfg = &gPciCfg2Ppi;
(**(EFI_PEI_SERVICES **)PeiServices).PciCfg = &gPciCfg2Ppi;
Status = (**PeiServices).InstallPpi ((CONST EFI_PEI_SERVICES **)PeiServices, &gPciCfg2PpiList);
return Status;