]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c
ArmPkg/PlatformBootManagerLib: fall back to the UiApp on boot failure
[mirror_edk2.git] / ArmPkg / Library / PlatformBootManagerLib / PlatformBm.c
index 23c925bbdb9c0b4e827a782d6b4f56ef9bb84eb8..85cb32f6d7cd9bf45bad3d15774cd00480405d97 100644 (file)
@@ -830,5 +830,15 @@ PlatformBootManagerUnableToBoot (
   VOID\r
   )\r
 {\r
-  return;\r
+  EFI_STATUS                   Status;\r
+  EFI_BOOT_MANAGER_LOAD_OPTION BootManagerMenu;\r
+\r
+  Status = EfiBootManagerGetBootManagerMenu (&BootManagerMenu);\r
+  if (EFI_ERROR (Status)) {\r
+    return;\r
+  }\r
+\r
+  for (;;) {\r
+    EfiBootManagerBoot (&BootManagerMenu);\r
+  }\r
 }\r