mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 05:34:31 +02:00
MdePkg: BasePeCoffLib: Allow AArch64 and x64 images in ImageFormatSupported
ARM64 and X64 may allow such foreign images to be used when driver implementing EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL is present. Cc: Sunil V L <sunilvl@ventanamicro.com> Cc: Daniel Schaefer <git@danielschaefer.me> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Andrei Warkentin <andrei.warkentin@intel.com>
This commit is contained in:
parent
7fa4692636
commit
dc5880d02f
@ -104,7 +104,15 @@ PeCoffLoaderImageFormatSupported (
|
|||||||
IN UINT16 Machine
|
IN UINT16 Machine
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Machine == IMAGE_FILE_MACHINE_RISCV64) {
|
/*
|
||||||
|
* ARM64 and X64 may allow such foreign images to be used when
|
||||||
|
* a driver implementing EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL is
|
||||||
|
* present.
|
||||||
|
*/
|
||||||
|
if ((Machine == IMAGE_FILE_MACHINE_RISCV64) ||
|
||||||
|
(Machine == IMAGE_FILE_MACHINE_ARM64) ||
|
||||||
|
(Machine == IMAGE_FILE_MACHINE_X64))
|
||||||
|
{
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user