summaryrefslogtreecommitdiff
path: root/OvmfPkg
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2015-02-17 00:05:36 +0000
committerjljusten <jljusten@Edk2>2015-02-17 00:05:36 +0000
commit28a34033eeab2a5078b9d92bcd6ed507a7ea191f (patch)
tree64dba7869886a0fd829c5f55de9219ca34bb01d6 /OvmfPkg
parent0d696b789fa8ce4d02f224bf1a3fa0ce98d56350 (diff)
downloadedk2-28a34033eeab2a5078b9d92bcd6ed507a7ea191f.zip
edk2-28a34033eeab2a5078b9d92bcd6ed507a7ea191f.tar.gz
edk2-28a34033eeab2a5078b9d92bcd6ed507a7ea191f.tar.bz2
OvmfPkg/PlatformBdsLib: Signal ReadyToBoot before booting QEMU kernel
Before we launch the QEMU kernel, we should signal the ReadyToBoot event. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16878 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf3
-rw-r--r--OvmfPkg/Library/PlatformBdsLib/QemuKernel.c8
2 files changed, 9 insertions, 2 deletions
diff --git a/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf b/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
index d4f5faf..5a28d78 100644
--- a/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
+++ b/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
@@ -1,7 +1,7 @@
## @file
# Platform BDS customizations library.
#
-# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
@@ -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..ef728df 100644
--- a/OvmfPkg/Library/PlatformBdsLib/QemuKernel.c
+++ b/OvmfPkg/Library/PlatformBdsLib/QemuKernel.c
@@ -1,6 +1,6 @@
/** @file
- Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -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: