From: Ard Biesheuvel Date: Mon, 27 Mar 2017 14:42:30 +0000 (+0100) Subject: MdeModulePkg/PciBusDxe: dispatch option ROMs for foreign architectures X-Git-Tag: edk2-stable201905~291 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=615a72400bca338aa92579a726c4669b4185dc43 MdeModulePkg/PciBusDxe: dispatch option ROMs for foreign architectures Delete the explicit machine type check for option ROM images, and instead, rely on the LoadImage() boot service to decide whether an option ROM can be dispatched or not. This permits platforms to ship with emulators to execute option ROMs that are not native to the processor architecture. Signed-off-by: Ard Biesheuvel Reviewed-by: Michael D Kinney Reviewed-by: Hao Wu --- diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c index f6d679cbcd..c994ed5fe3 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c @@ -693,13 +693,6 @@ ProcessOpRomImage ( goto NextImage; } - // - // Skip the EFI PCI Option ROM image if its machine type is not supported - // - if (!EFI_IMAGE_MACHINE_TYPE_SUPPORTED (EfiRomHeader->EfiMachineType)) { - goto NextImage; - } - // // Ignore the EFI PCI Option ROM image if it is an EFI application //