mirror of https://github.com/acidanthera/audk.git
MdePkg: Allows loading X64 and ARM64 OPROM images on LoongArch64
Enable foreign images loading on LoongArch64 if the EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL is present. 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: Chao Li <lichao@loongson.cn> Co-Authored-by: Dongyan Qian <qiandongyan@loongson.cn>
This commit is contained in:
parent
25ce25ecce
commit
03783393e1
|
@ -104,7 +104,15 @@ PeCoffLoaderImageFormatSupported (
|
|||
IN UINT16 Machine
|
||||
)
|
||||
{
|
||||
if (Machine == IMAGE_FILE_MACHINE_LOONGARCH64) {
|
||||
/*
|
||||
* 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_LOONGARCH64) ||
|
||||
(Machine == IMAGE_FILE_MACHINE_ARM64) ||
|
||||
(Machine == IMAGE_FILE_MACHINE_X64))
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue