]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c
CorebootPayloadPkg: Add "Down" key to Boot Manager Menu
[mirror_edk2.git] / CorebootPayloadPkg / Library / PlatformBootManagerLib / PlatformBootManager.c
index 1546e4879a37c5bdabb4f49c7c0f4ace59491e1c..5cb26e61f273a4f120dfcec3919711db8e5525d1 100644 (file)
@@ -181,6 +181,7 @@ PlatformBootManagerBeforeConsole (
 {\r
   EFI_INPUT_KEY                Enter;\r
   EFI_INPUT_KEY                F2;\r
+  EFI_INPUT_KEY                Down;\r
   EFI_BOOT_MANAGER_LOAD_OPTION BootOption;\r
 \r
   PlatformConsoleInit ();\r
@@ -200,6 +201,14 @@ PlatformBootManagerBeforeConsole (
   EfiBootManagerGetBootManagerMenu (&BootOption);\r
   EfiBootManagerAddKeyOptionVariable (NULL, (UINT16) BootOption.OptionNumber, 0, &F2, NULL);\r
 \r
+  //\r
+  // Also add Down key to Boot Manager Menu since some serial terminals don't support F2 key.\r
+  //\r
+  Down.ScanCode    = SCAN_DOWN;\r
+  Down.UnicodeChar = CHAR_NULL;\r
+  EfiBootManagerGetBootManagerMenu (&BootOption);\r
+  EfiBootManagerAddKeyOptionVariable (NULL, (UINT16) BootOption.OptionNumber, 0, &Down, NULL);\r
+\r
   //\r
   // Install ready to lock.\r
   // This needs to be done before option rom dispatched.\r
@@ -239,8 +248,8 @@ PlatformBootManagerAfterConsole (
   \r
   Print (\r
     L"\n"\r
-    L"F2      to enter Boot Manager Menu.\n"\r
-    L"ENTER   to boot directly.\n"\r
+    L"F2 or Down      to enter Boot Manager Menu.\n"\r
+    L"ENTER           to boot directly.\n"\r
     L"\n"\r
   );\r
 \r