Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: ff3c1adf20ffcb4fc994806eb9825b3662d6dd4c
      
https://github.com/tianocore/edk2/commit/ff3c1adf20ffcb4fc994806eb9825b3662d6dd4c
  Author: Qihang Gao <[email protected]>
  Date:   2025-12-10 (Wed, 10 Dec 2025)

  Changed paths:
    M MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c
    M MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c
    M MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.h

  Log Message:
  -----------
  MdeModulePkg: Load the native Option ROM image if the native one exists

Issue:https://github.com/tianocore/edk2/issues/11800

If there are multiple Option ROM images existed, current code will load
the first image that the emulator supports. Usually, x86 ROM image is
the first one and non-x86 ROM image is behind x86 ROM image. When the
emulator is introduced, x86 ROM image instead of native image is loaded
on non-x86 platforms.
This patch introduces a mechanism to prioritize the loading of native
images. Firstly, search the native image. If the native one is found,
just finish the process since the goal is reached. Otherwise, search
the foriegn images that the platform may support.

Signed-off-by: Qihang Gao <[email protected]>
Signed-off-by: Chao Li <[email protected]>
Suggested-by: Ard Biesheuvel <[email protected]>
Tested-by: Chen Zhang <[email protected]>
Cc: Dongyan Qian <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to