summaryrefslogtreecommitdiff
path: root/UnixPkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-14 12:45:51 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-14 12:45:51 +0000
commitde13f2451d0a05720d62792dc14f90bca51ba1b0 (patch)
tree33de9759837050419f69bb03b604a3b8a0361a92 /UnixPkg
parentc89914c8165d6a6aff0cb4c83180df640bcc921e (diff)
downloadedk2-platforms-de13f2451d0a05720d62792dc14f90bca51ba1b0.tar.xz
Apply PeiServicesLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7273 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg')
-rw-r--r--UnixPkg/UnixAutoScanPei/UnixAutoScan.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/UnixPkg/UnixAutoScanPei/UnixAutoScan.c b/UnixPkg/UnixAutoScanPei/UnixAutoScan.c
index 74af62ee93..2a8969d8bf 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;