summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-03-27 15:42:30 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2019-04-14 18:37:27 -0700
commit615a72400bca338aa92579a726c4669b4185dc43 (patch)
tree5492122d6d59493e8302b164dd380721936359b1
parent57df17fe26cd2b25c4c463edf3a3d8b83263f51b (diff)
downloadedk2-615a72400bca338aa92579a726c4669b4185dc43.tar.gz
edk2-615a72400bca338aa92579a726c4669b4185dc43.tar.bz2
edk2-615a72400bca338aa92579a726c4669b4185dc43.zip
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 <ard.biesheuvel@linaro.org> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c7
1 files changed, 0 insertions, 7 deletions
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
@@ -694,13 +694,6 @@ ProcessOpRomImage (
}
//
- // 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
//
if (EfiRomHeader->EfiSubsystem == EFI_IMAGE_SUBSYSTEM_EFI_APPLICATION) {