summaryrefslogtreecommitdiffstats
path: root/CorebootPayloadPkg
diff options
context:
space:
mode:
authorgdong1 <guo.dong@intel.com>2016-10-27 10:02:54 -0700
committerMaurice Ma <maurice.ma@intel.com>2016-10-27 10:23:01 -0700
commitbb47667aa726cf86634f6ccbb445d080994f9e22 (patch)
treeb9fcb976cc15fe0605b1d7550b0d2209e493b3ff /CorebootPayloadPkg
parent3176d84fe807974f38fa95cd18211ad8ee2cb3ea (diff)
downloadedk2-bb47667aa726cf86634f6ccbb445d080994f9e22.tar.gz
edk2-bb47667aa726cf86634f6ccbb445d080994f9e22.tar.bz2
edk2-bb47667aa726cf86634f6ccbb445d080994f9e22.zip
CorebootPayloadPkg: Add "Down" key to Boot Manager Menu
Also add Down key to Boot Manager Menu since some serial terminals don't support F2 key. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Guo Dong <guo.dong@intel.com> Reviewed-by: Maurice Ma <maurice.ma@intel.com>
Diffstat (limited to 'CorebootPayloadPkg')
-rw-r--r--CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c b/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c
index 1546e4879a..5cb26e61f2 100644
--- a/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c
+++ b/CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c
@@ -181,6 +181,7 @@ PlatformBootManagerBeforeConsole (
{
EFI_INPUT_KEY Enter;
EFI_INPUT_KEY F2;
+ EFI_INPUT_KEY Down;
EFI_BOOT_MANAGER_LOAD_OPTION BootOption;
PlatformConsoleInit ();
@@ -201,6 +202,14 @@ PlatformBootManagerBeforeConsole (
EfiBootManagerAddKeyOptionVariable (NULL, (UINT16) BootOption.OptionNumber, 0, &F2, NULL);
//
+ // Also add Down key to Boot Manager Menu since some serial terminals don't support F2 key.
+ //
+ Down.ScanCode = SCAN_DOWN;
+ Down.UnicodeChar = CHAR_NULL;
+ EfiBootManagerGetBootManagerMenu (&BootOption);
+ EfiBootManagerAddKeyOptionVariable (NULL, (UINT16) BootOption.OptionNumber, 0, &Down, NULL);
+
+ //
// Install ready to lock.
// This needs to be done before option rom dispatched.
//
@@ -239,8 +248,8 @@ PlatformBootManagerAfterConsole (
Print (
L"\n"
- L"F2 to enter Boot Manager Menu.\n"
- L"ENTER to boot directly.\n"
+ L"F2 or Down to enter Boot Manager Menu.\n"
+ L"ENTER to boot directly.\n"
L"\n"
);