OvmfPkg/PlatformBootManagerLib: add missing report status code call

Consumers of status code reports may rely on a status code to be
reported when the ReadyToBoot event is signalled. For instance,
FirmwarePerformanceDxe will fail to install the FPDT ACPI table
in this case. So add the missing call.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Ard Biesheuvel 2018-05-22 15:46:51 +02:00
parent 2d0c6692ee
commit 0a0566d5ed
2 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,7 @@
QemuFwCfgS3Lib QemuFwCfgS3Lib
LoadLinuxLib LoadLinuxLib
QemuBootOrderLib QemuBootOrderLib
ReportStatusCodeLib
UefiLib UefiLib
Tcg2PhysicalPresenceLib Tcg2PhysicalPresenceLib

View File

@ -18,6 +18,7 @@
#include <Library/LoadLinuxLib.h> #include <Library/LoadLinuxLib.h>
#include <Library/MemoryAllocationLib.h> #include <Library/MemoryAllocationLib.h>
#include <Library/QemuFwCfgLib.h> #include <Library/QemuFwCfgLib.h>
#include <Library/ReportStatusCodeLib.h>
#include <Library/UefiBootServicesTableLib.h> #include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h> #include <Library/UefiLib.h>
@ -149,6 +150,9 @@ TryRunningQemuKernel (
// //
EfiSignalEventReadyToBoot(); EfiSignalEventReadyToBoot();
REPORT_STATUS_CODE (EFI_PROGRESS_CODE,
(EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_READY_TO_BOOT_EVENT));
Status = LoadLinux (KernelBuf, SetupBuf); Status = LoadLinux (KernelBuf, SetupBuf);
FreeAndReturn: FreeAndReturn: