audk/MdeModulePkg/Library/UefiBootManagerLib
Neal Gompa 8c1e9f9c6f MdeModulePkg/UefiBootManagerLib: Signal ReadyToBoot on platform recovery
Currently, the ReadyToBoot event is only signaled when a formal Boot
Manager option is executed (in BmBoot.c -> EfiBootManagerBoot ()).

However, the introduction of Platform Recovery in UEFI 2.5 makes it
necessary to signal ReadyToBoot when a Platform Recovery boot loader
runs because otherwise it may lead to the execution of a boot loader
that has similar requirements to a regular one that is not launched
as a Boot Manager option.

This is especially critical to ensuring that the graphical console is
actually usable during platform recovery, as some platforms do rely on
the ConsolePrefDxe driver, which only performs console initialization
after ReadyToBoot is triggered.

This patch fixes that behavior by calling EfiSignalEventReadyToBoot ()
in EfiBootManagerProcessLoadOption () when invoking platform recovery,
which is the function that sets up the platform recovery boot process.

The expected behavior has been clarified in the UEFI 2.10 specification
to explicitly indicate this behavior is required for correct operation.

This is a rebased version of the patch originally written by Pete Batard.

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2831

Co-authored-by: Pete Batard <pete@akeo.ie>
Signed-off-by: Neal Gompa <ngompa@fedoraproject.org>
Reviewed-by: Jeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2023-12-19 13:56:58 +00:00
..
BmBoot.c MdeModulePkg: Optimize BmExpandPartitionDevicePath 2023-10-24 13:00:18 +00:00
BmBootDescription.c MdeModulePkg/UefiBootManagerLib: Add Disk Info support for Ufs 2022-10-06 17:38:41 +00:00
BmConnect.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BmConsole.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BmDriverHealth.c MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
BmHotkey.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BmLoadOption.c MdeModulePkg/UefiBootManagerLib: Signal ReadyToBoot on platform recovery 2023-12-19 13:56:58 +00:00
BmMisc.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
InternalBm.h MdeModulePkg/UefiBootManagerLib: Convert BmLoadOption to Variable Policy 2022-01-28 06:08:45 +00:00
UefiBootManagerLib.inf MdeModulePkg/UefiBootManagerLib: Add Disk Info support for Ufs 2022-10-06 17:38:41 +00:00
UefiBootManagerLib.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00