mirror of https://github.com/acidanthera/audk.git
Apply PeiServicesLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7275 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2f17ffce3c
commit
6c365805df
|
@ -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,14 +64,12 @@ PeiUnixPeCoffLibConstructor (
|
|||
//
|
||||
// GuidHob is not ready, try to locate PeCoffLoader guid structure.
|
||||
//
|
||||
Status = (*PeiServices)->LocatePpi (
|
||||
PeiServices,
|
||||
Status = PeiServicesLocatePpi (
|
||||
&gEfiPeiPeCoffLoaderGuid,
|
||||
0,
|
||||
NULL,
|
||||
&mPeiEfiPeiPeCoffLoader
|
||||
);
|
||||
|
||||
//
|
||||
// PeCofferLoader guid structure must be installed before this library runs.
|
||||
//
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
[LibraryClasses]
|
||||
DebugLib
|
||||
HobLib
|
||||
PeiServicesLib
|
||||
|
||||
[Guids]
|
||||
gEfiPeiPeCoffLoaderGuid # ALWAYS_CONSUMED
|
||||
|
|
Loading…
Reference in New Issue