]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/PlatformBdsLib: Signal ReadyToBoot before booting QEMU kernel
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 17 Feb 2015 00:05:36 +0000 (00:05 +0000)
committerjljusten <jljusten@Edk2>
Tue, 17 Feb 2015 00:05:36 +0000 (00:05 +0000)
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

OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
OvmfPkg/Library/PlatformBdsLib/QemuKernel.c

index d4f5faf7b5a58cbe42db81c9ecd4f0cdeda1b3f2..5a28d782e20a77a9e348c675db2d08d864d4c579 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 #  Platform BDS customizations library.\r
 #\r
-#  Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
@@ -51,6 +51,7 @@
   QemuFwCfgLib\r
   LoadLinuxLib\r
   QemuBootOrderLib\r
+  UefiLib\r
 \r
 [Pcd]\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile\r
index 47ebed9f6d157cfea16b1de39072da7a6121b7c2..ef728dfdeb60b4894f73e77fa7d878964fa77263 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-  Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -19,6 +19,7 @@
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/QemuFwCfgLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/UefiLib.h>\r
 \r
 \r
 EFI_STATUS\r
@@ -143,6 +144,11 @@ TryRunningQemuKernel (
     goto FreeAndReturn;\r
   }\r
 \r
+  //\r
+  // Signal the EVT_SIGNAL_READY_TO_BOOT event\r
+  //\r
+  EfiSignalEventReadyToBoot();\r
+\r
   Status = LoadLinux (KernelBuf, SetupBuf);\r
 \r
 FreeAndReturn:\r