]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/PlatformBootManager: Add PlatformBootManagerUnableToBoot
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 3 Jul 2018 05:19:28 +0000 (13:19 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 27 Jul 2018 07:47:50 +0000 (15:47 +0800)
The patch adds a new API PlatformBootManagerUnableToBoot()
to PlatformBootManagerLib.
The new API is provided by platform bds library and is called when
no boot option could be launched.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Michael Turner <Michael.Turner@microsoft.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Sunny Wang <sunnywang@hpe.com>
MdeModulePkg/Include/Library/PlatformBootManagerLib.h
MdeModulePkg/Library/PlatformBootManagerLibNull/PlatformBootManager.c

index 65630ce2bbef0b1d665e6ffebc30ceefb26a875d..6e2632904380722cb6bdc4f365507a8049ec8085 100644 (file)
@@ -59,4 +59,17 @@ PlatformBootManagerWaitCallback (
   UINT16          TimeoutRemain\r
   );\r
 \r
+/**\r
+  The function is called when no boot option could be launched,\r
+  including platform recovery options and options pointing to applications\r
+  built into firmware volumes.\r
+\r
+  If this function returns, BDS attempts to enter an infinite loop.\r
+**/\r
+VOID\r
+EFIAPI\r
+PlatformBootManagerUnableToBoot (\r
+  VOID\r
+  );\r
+\r
 #endif\r
index 1390e1909725d5d361796b501b356e9b78ad3742..5a4455ef2390c478438ff3cccb7c15ea5046abfd 100644 (file)
@@ -2,7 +2,7 @@
   This file include all platform action which can be customized\r
   by IBV/OEM.\r
 \r
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2018, 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
@@ -65,3 +65,20 @@ PlatformBootManagerWaitCallback (
 {\r
   return;\r
 }\r
+\r
+/**\r
+  The function is called when no boot option could be launched,\r
+  including platform recovery options and options pointing to applications\r
+  built into firmware volumes.\r
+\r
+  If this function returns, BDS attempts to enter an infinite loop.\r
+**/\r
+VOID\r
+EFIAPI\r
+PlatformBootManagerUnableToBoot (\r
+  VOID\r
+  )\r
+{\r
+  return;\r
+}\r
+\r