From 28a34033eeab2a5078b9d92bcd6ed507a7ea191f Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Tue, 17 Feb 2015 00:05:36 +0000 Subject: [PATCH] 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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16878 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf | 3 ++- OvmfPkg/Library/PlatformBdsLib/QemuKernel.c | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf b/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf index d4f5faf7b5..5a28d782e2 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.
+# Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.
# 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 47ebed9f6d..ef728dfdeb 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.
+ Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
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 #include #include +#include EFI_STATUS @@ -143,6 +144,11 @@ TryRunningQemuKernel ( goto FreeAndReturn; } + // + // Signal the EVT_SIGNAL_READY_TO_BOOT event + // + EfiSignalEventReadyToBoot(); + Status = LoadLinux (KernelBuf, SetupBuf); FreeAndReturn: -- 2.39.2