Before we launch the QEMU kernel, we should signal the ReadyToBoot
event.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <[email protected]>
---
OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf | 1 +
OvmfPkg/Library/PlatformBdsLib/QemuKernel.c | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
b/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
index d4f5faf..f0c3fb4 100644
--- a/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
+++ b/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
@@ -51,6 +51,7 @@
QemuFwCfgLib
LoadLinuxLib
QemuBootOrderLib
+ UefiLib
[Pcd]
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile
diff --git a/OvmfPkg/Library/PlatformBdsLib/QemuKernel.c
b/OvmfPkg/Library/PlatformBdsLib/QemuKernel.c
index 47ebed9..41a786a 100644
--- a/OvmfPkg/Library/PlatformBdsLib/QemuKernel.c
+++ b/OvmfPkg/Library/PlatformBdsLib/QemuKernel.c
@@ -19,6 +19,7 @@
#include <Library/MemoryAllocationLib.h>
#include <Library/QemuFwCfgLib.h>
#include <Library/UefiBootServicesTableLib.h>
+#include <Library/UefiLib.h>
EFI_STATUS
@@ -143,6 +144,11 @@ TryRunningQemuKernel (
goto FreeAndReturn;
}
+ //
+ // Signal the EVT_SIGNAL_READY_TO_BOOT event
+ //
+ EfiSignalEventReadyToBoot();
+
Status = LoadLinux (KernelBuf, SetupBuf);
FreeAndReturn:
--
2.1.4
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel