From 6c365805df4034045774780973f401513d93ff70 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Wed, 14 Jan 2009 12:56:34 +0000 Subject: [PATCH] Apply PeiServicesLib git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7275 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/PeiUnixPeCoffLib/PeiUnixPeCoffLib.c | 17 ++++++++--------- .../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 #include #include +#include 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