summaryrefslogtreecommitdiff
path: root/UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.c')
-rw-r--r--UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.c b/UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.c
index 4561a7dbcb..fa9dce4024 100644
--- a/UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.c
+++ b/UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.c
@@ -26,6 +26,7 @@ Abstract:
#include <Library/DebugLib.h>
#include <Library/PeCoffLib.h>
#include <Library/HobLib.h>
+#include <Library/PeiServicesLib.h>
EFI_PEI_PE_COFF_LOADER_PROTOCOL *mPeiEfiPeiPeCoffLoader;
@@ -63,15 +64,13 @@ PeiUnixPeCoffLibConstructor (
//
// GuidHob is not ready, try to locate PeCoffLoader guid structure.
//
- Status = (*PeiServices)->LocatePpi (
- PeiServices,
- &gEfiPeiPeCoffLoaderGuid,
- 0,
- NULL,
- &mPeiEfiPeiPeCoffLoader
- );
-
- //
+ Status = PeiServicesLocatePpi (
+ &gEfiPeiPeCoffLoaderGuid,
+ 0,
+ NULL,
+ &mPeiEfiPeiPeCoffLoader
+ );
+ //
// PeCofferLoader guid structure must be installed before this library runs.
//
ASSERT_EFI_ERROR (Status);