summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-11 07:41:02 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-11 07:41:02 +0000
commitd84dbca50e80554facaecbfd7c36891a3ee173c4 (patch)
tree4a70c1f9b0fe531542d0757489710a128eb2eec0
parent4cfc3293c768c47851e43b1ba302bdff55a00a2a (diff)
downloadedk2-platforms-d84dbca50e80554facaecbfd7c36891a3ee173c4.tar.xz
Use apply PeiServicesLib to locate PPI
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7504 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--Nt32Pkg/Library/PeiNt32PeCoffLib/PeiNt32PeCoffLib.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Nt32Pkg/Library/PeiNt32PeCoffLib/PeiNt32PeCoffLib.c b/Nt32Pkg/Library/PeiNt32PeCoffLib/PeiNt32PeCoffLib.c
index 91ce7f6468..87ae3879a0 100644
--- a/Nt32Pkg/Library/PeiNt32PeCoffLib/PeiNt32PeCoffLib.c
+++ b/Nt32Pkg/Library/PeiNt32PeCoffLib/PeiNt32PeCoffLib.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,13 +64,12 @@ PeiNt32PeCoffLibConstructor (
//
// GuidHob is not ready, try to locate PeCoffLoader guid structure.
//
- Status = (*PeiServices)->LocatePpi (
- PeiServices,
- &gEfiPeiPeCoffLoaderGuid,
- 0,
- NULL,
- (VOID**)&mPeiEfiPeiPeCoffLoader
- );
+ Status = PeiServicesLocatePpi (
+ &gEfiPeiPeCoffLoaderGuid,
+ 0,
+ NULL,
+ (VOID**) &mPeiEfiPeiPeCoffLoader
+ );
//
// PeCofferLoader guid structure must be installed before this library runs.