mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 06:04:52 +02:00
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:
parent
d84dbca50e
commit
68443c61b4
@ -35,12 +35,13 @@ Revision History
|
|||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
#include <Library/PeimEntryPoint.h>
|
#include <Library/PeimEntryPoint.h>
|
||||||
#include <Library/HobLib.h>
|
#include <Library/HobLib.h>
|
||||||
|
#include <Library/PeiServicesLib.h>
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PeimInitializeWinNtAutoScan (
|
PeimInitializeWinNtAutoScan (
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||||
IN EFI_PEI_SERVICES **PeiServices
|
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
@ -72,25 +73,23 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Get the PEI NT Autoscan PPI
|
// Get the PEI NT Autoscan PPI
|
||||||
//
|
//
|
||||||
Status = (**PeiServices).LocatePpi (
|
Status = PeiServicesLocatePpi (
|
||||||
(const EFI_PEI_SERVICES **)PeiServices,
|
&gPeiNtAutoScanPpiGuid, // GUID
|
||||||
&gPeiNtAutoScanPpiGuid, // GUID
|
0, // INSTANCE
|
||||||
0, // INSTANCE
|
&PpiDescriptor, // EFI_PEI_PPI_DESCRIPTOR
|
||||||
&PpiDescriptor, // EFI_PEI_PPI_DESCRIPTOR
|
(VOID**)&PeiNtService // PPI
|
||||||
(VOID**)&PeiNtService // PPI
|
);
|
||||||
);
|
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get the Memory Test PPI
|
// Get the Memory Test PPI
|
||||||
//
|
//
|
||||||
Status = (**PeiServices).LocatePpi (
|
Status = PeiServicesLocatePpi (
|
||||||
(const EFI_PEI_SERVICES **)PeiServices,
|
&gPeiBaseMemoryTestPpiGuid,
|
||||||
&gPeiBaseMemoryTestPpiGuid,
|
0,
|
||||||
0,
|
NULL,
|
||||||
NULL,
|
(VOID**)&MemoryTestPpi
|
||||||
(VOID**)&MemoryTestPpi
|
);
|
||||||
);
|
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
Index = 0;
|
Index = 0;
|
||||||
@ -112,7 +111,7 @@ Returns:
|
|||||||
// For the first area register it as PEI tested memory
|
// For the first area register it as PEI tested memory
|
||||||
//
|
//
|
||||||
Status = MemoryTestPpi->BaseMemoryTest (
|
Status = MemoryTestPpi->BaseMemoryTest (
|
||||||
PeiServices,
|
(EFI_PEI_SERVICES **) PeiServices,
|
||||||
MemoryTestPpi,
|
MemoryTestPpi,
|
||||||
MemoryBase,
|
MemoryBase,
|
||||||
MemorySize,
|
MemorySize,
|
||||||
@ -124,7 +123,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Register the "tested" memory with the PEI Core
|
// 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);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
Attributes |= EFI_RESOURCE_ATTRIBUTE_TESTED;
|
Attributes |= EFI_RESOURCE_ATTRIBUTE_TESTED;
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
HobLib
|
HobLib
|
||||||
PeimEntryPoint
|
PeimEntryPoint
|
||||||
DebugLib
|
DebugLib
|
||||||
|
PeiServicesLib
|
||||||
|
|
||||||
[Ppis]
|
[Ppis]
|
||||||
gPeiBaseMemoryTestPpiGuid # PPI ALWAYS_CONSUMED
|
gPeiBaseMemoryTestPpiGuid # PPI ALWAYS_CONSUMED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user