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>
- //\r
- // Skip the EFI PCI Option ROM image if its machine type is not supported\r
- //\r
- if (!EFI_IMAGE_MACHINE_TYPE_SUPPORTED (EfiRomHeader->EfiMachineType)) {\r
- goto NextImage;\r
- }\r
-\r
//\r
// Ignore the EFI PCI Option ROM image if it is an EFI application\r
//\r
//\r
// Ignore the EFI PCI Option ROM image if it is an EFI application\r
//\r