diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-01-14 12:56:34 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-01-14 12:56:34 +0000 |
commit | 6c365805df4034045774780973f401513d93ff70 (patch) | |
tree | 3ecb0bf136f96b0ad2dfacced5af49860b3bf939 /UnixPkg/Library | |
parent | 2f17ffce3c9e9e467894589b795b2221243955c9 (diff) | |
download | edk2-6c365805df4034045774780973f401513d93ff70.tar.gz edk2-6c365805df4034045774780973f401513d93ff70.tar.bz2 edk2-6c365805df4034045774780973f401513d93ff70.zip |
Apply PeiServicesLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7275 6f19259b-4bc3-4df7-8a09-765794883524
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
|