mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
Produce LoadPeImage protocol only in framework compatibility mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9586 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ad86a50ae7
commit
6320fa42c9
@ -107,7 +107,7 @@
|
|||||||
gEfiStatusCodeRuntimeProtocolGuid ## SOMETIMES_CONSUMES
|
gEfiStatusCodeRuntimeProtocolGuid ## SOMETIMES_CONSUMES
|
||||||
gEfiCapsuleArchProtocolGuid ## CONSUMES
|
gEfiCapsuleArchProtocolGuid ## CONSUMES
|
||||||
gEfiDecompressProtocolGuid ## CONSUMES
|
gEfiDecompressProtocolGuid ## CONSUMES
|
||||||
gEfiLoadPeImageProtocolGuid ## PRODUCES
|
gEfiLoadPeImageProtocolGuid ## SOMETIMES_PRODUCES (Produces when PcdFrameworkCompatibilitySupport is set)
|
||||||
gEfiSimpleFileSystemProtocolGuid ## CONSUMES
|
gEfiSimpleFileSystemProtocolGuid ## CONSUMES
|
||||||
gEfiLoadFileProtocolGuid ## CONSUMES
|
gEfiLoadFileProtocolGuid ## CONSUMES
|
||||||
gEfiLoadFile2ProtocolGuid ## CONSUMES
|
gEfiLoadFile2ProtocolGuid ## CONSUMES
|
||||||
@ -140,3 +140,6 @@
|
|||||||
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueBootServiceExit
|
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueBootServiceExit
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueDxeDriverBegin
|
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueDxeDriverBegin
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueDxeDriverEnd
|
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueDxeDriverEnd
|
||||||
|
|
||||||
|
[FeaturePcd.common]
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES
|
||||||
|
@ -144,10 +144,11 @@ CoreInitializeImageServices (
|
|||||||
gDxeCoreImageHandle = Image->Handle;
|
gDxeCoreImageHandle = Image->Handle;
|
||||||
gDxeCoreLoadedImage = &Image->Info;
|
gDxeCoreLoadedImage = &Image->Info;
|
||||||
|
|
||||||
|
if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) {
|
||||||
//
|
//
|
||||||
// Export DXE Core PE Loader functionality
|
// Export DXE Core PE Loader functionality for backward compatibility.
|
||||||
//
|
//
|
||||||
return CoreInstallProtocolInterface (
|
Status = CoreInstallProtocolInterface (
|
||||||
&mLoadPe32PrivateData.Handle,
|
&mLoadPe32PrivateData.Handle,
|
||||||
&gEfiLoadPeImageProtocolGuid,
|
&gEfiLoadPeImageProtocolGuid,
|
||||||
EFI_NATIVE_INTERFACE,
|
EFI_NATIVE_INTERFACE,
|
||||||
@ -155,6 +156,9 @@ CoreInitializeImageServices (
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read image file (specified by UserHandle) into user specified buffer with specified offset
|
Read image file (specified by UserHandle) into user specified buffer with specified offset
|
||||||
and length.
|
and length.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user