From 11acd945a41153aa9d6027b42aff693f68abeb4e Mon Sep 17 00:00:00 2001 From: Sachin Ganesh Date: Sat, 8 Aug 2026 00:41:58 +0530 Subject: MdeModulePkg: Report EFI_SW_DXE_BS_PC_BOOT_OPTION_COMPLETE Previously EfiBootManagerBoot reported EFI_SW_DXE_BS_EC_BOOT_OPTION_FAILED when a boot option returned an error, but reported nothing on success. Report the PI 1.10 status code EFI_SW_DXE_BS_PC_BOOT_OPTION_COMPLETE when a boot option loads, executes, and returns success, so status code listeners can tell that a boot option was attempted and that control returned to firmware. Signed-off-by: Sachin Ganesh --- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c index 0d84d386ee..5d614436e8 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c @@ -2175,6 +2175,8 @@ EfiBootManagerBoot ( // Report Status Code with the failure status to indicate that boot failure // BmReportLoadFailure (EFI_SW_DXE_BS_EC_BOOT_OPTION_FAILED, Status); + } else { + REPORT_STATUS_CODE (EFI_PROGRESS_CODE, (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_BOOT_OPTION_COMPLETE)); } PERF_END_EX (gImageHandle, "BdsAttempt", NULL, 0, (UINT32)OptionNumber); -- cgit v1.2.3