]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/PlatformBdsLib/QemuKernel.c
OvmfPkg/PlatformBdsLib: Signal ReadyToBoot before booting QEMU kernel
[mirror_edk2.git] / OvmfPkg / Library / PlatformBdsLib / QemuKernel.c
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