summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-05-22 15:46:51 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2018-05-29 10:43:42 +0200
commit0a0566d5edad47c1669164e5b6f5829d3ab1e6e0 (patch)
treed454cea6a0e1357468fe5d46ba121aaa1d26fcbf /OvmfPkg
parent2d0c6692eee4b1e54714942098776eedfbcf38fa (diff)
downloadedk2-0a0566d5edad47c1669164e5b6f5829d3ab1e6e0.tar.gz
edk2-0a0566d5edad47c1669164e5b6f5829d3ab1e6e0.tar.bz2
edk2-0a0566d5edad47c1669164e5b6f5829d3ab1e6e0.zip
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>
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf1
-rw-r--r--OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
index 4b72c44bcf..d355d0440e 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
+++ b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
@@ -56,6 +56,7 @@
QemuFwCfgS3Lib
LoadLinuxLib
QemuBootOrderLib
+ ReportStatusCodeLib
UefiLib
Tcg2PhysicalPresenceLib
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c b/OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c
index ef728dfdeb..f20df9533f 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c
+++ b/OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c
@@ -18,6 +18,7 @@
#include <Library/LoadLinuxLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/QemuFwCfgLib.h>
+#include <Library/ReportStatusCodeLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
@@ -149,6 +150,9 @@ TryRunningQemuKernel (
//
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);
FreeAndReturn: