diff options
Diffstat (limited to 'UnixPkg/Library')
-rw-r--r-- | UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.c | 17 | ||||
-rw-r--r-- | UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.inf | 1 |
2 files changed, 9 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);
diff --git a/UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.inf b/UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.inf index 7be9c26192..6be755fd1a 100644 --- a/UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.inf +++ b/UnixPkg/Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.inf @@ -44,6 +44,7 @@ [LibraryClasses]
DebugLib
HobLib
+ PeiServicesLib
[Guids]
gEfiPeiPeCoffLoaderGuid # ALWAYS_CONSUMED
|