diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-11 07:42:24 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-11 07:42:24 +0000 |
commit | 68443c61b4e51bdef20a60692bf1c417c5e06fb8 (patch) | |
tree | 310b324409fa155c3cffdb2aacf2e341cfd08031 /Nt32Pkg/WinNtAutoScanPei | |
parent | d84dbca50e80554facaecbfd7c36891a3ee173c4 (diff) | |
download | edk2-platforms-68443c61b4e51bdef20a60692bf1c417c5e06fb8.tar.xz |
Fix entry point prototype error.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7505 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/WinNtAutoScanPei')
-rw-r--r-- | Nt32Pkg/WinNtAutoScanPei/WinNtAutoScan.c | 35 | ||||
-rw-r--r-- | Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf | 2 |
2 files changed, 18 insertions, 19 deletions
diff --git a/Nt32Pkg/WinNtAutoScanPei/WinNtAutoScan.c b/Nt32Pkg/WinNtAutoScanPei/WinNtAutoScan.c index 2c2b3025b0..9591c39fcf 100644 --- a/Nt32Pkg/WinNtAutoScanPei/WinNtAutoScan.c +++ b/Nt32Pkg/WinNtAutoScanPei/WinNtAutoScan.c @@ -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;
diff --git a/Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf b/Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf index 078293142d..c04d062f72 100644 --- a/Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf +++ b/Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf @@ -44,7 +44,7 @@ HobLib
PeimEntryPoint
DebugLib
-
+ PeiServicesLib
[Ppis]
gPeiBaseMemoryTestPpiGuid # PPI ALWAYS_CONSUMED
|