summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
diff options
context:
space:
mode:
authorQihang Gao <gaoqihang@loongson.cn>2025-11-26 12:20:17 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-12-10 12:53:49 +0300
commitff3c1adf20ffcb4fc994806eb9825b3662d6dd4c (patch)
tree4a43baeeb67907c648fab878cae919238e7fb48e /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
parentc20483b928d9c923d7c5e0a6c321cf32ac13d590 (diff)
downloadedk2-ff3c1adf20ffcb4fc994806eb9825b3662d6dd4c.tar.xz
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 <gaoqihang@loongson.cn> Signed-off-by: Chao Li <lichao@loongson.cn> Suggested-by: Ard Biesheuvel <ardb@kernel.org> Tested-by: Chen Zhang <zhangchen@loongson.cn> Cc: Dongyan Qian <qiandongyan@loongson.cn>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions