Fix entry point prototype error.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7505 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2009-02-11 07:42:24 +00:00
parent d84dbca50e
commit 68443c61b4
2 changed files with 18 additions and 19 deletions

View File

@ -35,12 +35,13 @@ Revision History
#include <Library/DebugLib.h>
#include <Library/PeimEntryPoint.h>
#include <Library/HobLib.h>
#include <Library/PeiServicesLib.h>
EFI_STATUS
EFIAPI
PeimInitializeWinNtAutoScan (
IN EFI_FFS_FILE_HEADER *FfsHeader,
IN EFI_PEI_SERVICES **PeiServices
IN EFI_PEI_FILE_HANDLE FileHandle,
IN CONST EFI_PEI_SERVICES **PeiServices
)
/*++
@ -72,25 +73,23 @@ Returns:
//
// Get the PEI NT Autoscan PPI
//
Status = (**PeiServices).LocatePpi (
(const EFI_PEI_SERVICES **)PeiServices,
&gPeiNtAutoScanPpiGuid, // GUID
0, // INSTANCE
&PpiDescriptor, // EFI_PEI_PPI_DESCRIPTOR
(VOID**)&PeiNtService // PPI
);
Status = PeiServicesLocatePpi (
&gPeiNtAutoScanPpiGuid, // GUID
0, // INSTANCE
&PpiDescriptor, // EFI_PEI_PPI_DESCRIPTOR
(VOID**)&PeiNtService // PPI
);
ASSERT_EFI_ERROR (Status);
//
// Get the Memory Test PPI
//
Status = (**PeiServices).LocatePpi (
(const EFI_PEI_SERVICES **)PeiServices,
&gPeiBaseMemoryTestPpiGuid,
0,
NULL,
(VOID**)&MemoryTestPpi
);
Status = PeiServicesLocatePpi (
&gPeiBaseMemoryTestPpiGuid,
0,
NULL,
(VOID**)&MemoryTestPpi
);
ASSERT_EFI_ERROR (Status);
Index = 0;
@ -112,7 +111,7 @@ Returns:
// For the first area register it as PEI tested memory
//
Status = MemoryTestPpi->BaseMemoryTest (
PeiServices,
(EFI_PEI_SERVICES **) PeiServices,
MemoryTestPpi,
MemoryBase,
MemorySize,
@ -124,7 +123,7 @@ Returns:
//
// Register the "tested" memory with the PEI Core
//
Status = (**PeiServices).InstallPeiMemory ((const EFI_PEI_SERVICES **)PeiServices, MemoryBase, MemorySize);
Status = PeiServicesInstallPeiMemory (MemoryBase, MemorySize);
ASSERT_EFI_ERROR (Status);
Attributes |= EFI_RESOURCE_ATTRIBUTE_TESTED;

View File

@ -44,7 +44,7 @@
HobLib
PeimEntryPoint
DebugLib
PeiServicesLib
[Ppis]
gPeiBaseMemoryTestPpiGuid # PPI ALWAYS_CONSUMED