diff options
-rw-r--r-- | UnixPkg/UnixAutoScanPei/UnixAutoScan.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/UnixPkg/UnixAutoScanPei/UnixAutoScan.c b/UnixPkg/UnixAutoScanPei/UnixAutoScan.c index 74af62e..2a8969d 100644 --- a/UnixPkg/UnixAutoScanPei/UnixAutoScan.c +++ b/UnixPkg/UnixAutoScanPei/UnixAutoScan.c @@ -68,25 +68,23 @@ Returns: //
// Get the PEI UNIX Autoscan PPI
//
- Status = (**PeiServices).LocatePpi (
- PeiServices,
- &gPeiUnixAutoScanPpiGuid, // GUID
- 0, // INSTANCE
- &PpiDescriptor, // EFI_PEI_PPI_DESCRIPTOR
- (VOID **)&PeiUnixService // PPI
- );
+ Status = PeiServicesLocatePpi (
+ &gPeiUnixAutoScanPpiGuid, // GUID
+ 0, // INSTANCE
+ &PpiDescriptor, // EFI_PEI_PPI_DESCRIPTOR
+ (VOID **)&PeiUnixService // PPI
+ );
ASSERT_EFI_ERROR (Status);
//
// Get the Memory Test PPI
//
- Status = (**PeiServices).LocatePpi (
- PeiServices,
- &gPeiBaseMemoryTestPpiGuid,
- 0,
- NULL,
- (VOID **)&MemoryTestPpi
- );
+ Status = PeiServicesLocatePpi (
+ &gPeiBaseMemoryTestPpiGuid,
+ 0,
+ NULL,
+ (VOID**)&MemoryTestPpi
+ );
ASSERT_EFI_ERROR (Status);
Index = 0;
@@ -120,7 +118,7 @@ Returns: //
// Register the "tested" memory with the PEI Core
//
- Status = (**PeiServices).InstallPeiMemory (PeiServices, MemoryBase, MemorySize);
+ Status = PeiServicesInstallPeiMemory (MemoryBase, MemorySize);
ASSERT_EFI_ERROR (Status);
Attributes |= EFI_RESOURCE_ATTRIBUTE_TESTED;
|