]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/PlatformBootManagerLib: add missing report status code call
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 22 May 2018 13:46:51 +0000 (15:46 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 29 May 2018 08:43:42 +0000 (10:43 +0200)
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>
OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c

index 4b72c44bcf0adaec4d3153da191c8fb7afcbae52..d355d0440efd9c54fcbd1caaef4e0e36dfaf8b4b 100644 (file)
@@ -56,6 +56,7 @@
   QemuFwCfgS3Lib\r
   LoadLinuxLib\r
   QemuBootOrderLib\r
+  ReportStatusCodeLib\r
   UefiLib\r
   Tcg2PhysicalPresenceLib\r
 \r
index ef728dfdeb60b4894f73e77fa7d878964fa77263..f20df9533fdaa6b48477d68f09affdf6360269bc 100644 (file)
@@ -18,6 +18,7 @@
 #include <Library/LoadLinuxLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/QemuFwCfgLib.h>\r
+#include <Library/ReportStatusCodeLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/UefiLib.h>\r
 \r
@@ -149,6 +150,9 @@ TryRunningQemuKernel (
   //\r
   EfiSignalEventReadyToBoot();\r
 \r
+  REPORT_STATUS_CODE (EFI_PROGRESS_CODE,\r
+    (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_READY_TO_BOOT_EVENT));\r
+\r
   Status = LoadLinux (KernelBuf, SetupBuf);\r
 \r
 FreeAndReturn:\r