Skip to content

Commit

Permalink
OvmfPkg: swap ESC and F2 mapping
Browse files Browse the repository at this point in the history
We want the following:
- ESC - one time boot menu
- F2 - setup menu

See the discussion in Github:
#91 (comment)

Signed-off-by: Maciej Pijanowski <[email protected]>
  • Loading branch information
macpijan authored and SergiiDmytruk committed Apr 25, 2024
1 parent baeff2a commit 9ca2e00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,15 +512,15 @@ PlatformRegisterOptionsAndKeys (
NULL,
(UINT16)OptionNumber,
0,
&F2,
&Esc,
NULL
);
ASSERT (Status == EFI_SUCCESS || Status == EFI_ALREADY_STARTED);
Status = EfiBootManagerAddKeyOptionVariable (
NULL,
(UINT16)BootOption.OptionNumber,
0,
&Esc,
&F2,
NULL
);
ASSERT (Status == EFI_SUCCESS || Status == EFI_ALREADY_STARTED);
Expand Down Expand Up @@ -1934,8 +1934,8 @@ PlatformBootManagerAfterConsole (

// This is probably the earliest we can print this, as before the console is
// not ready yet.
Print(L"ESC to enter Setup\n");
Print(L"F2 to enter Boot Manager Menu\n");
Print(L"F2 to enter Setup\n");
Print(L"ESC to enter Boot Manager Menu\n");
Print(L"ENTER to boot directly\n");

if (PcdGetBool (PcdOvmfFlashVariablesEnable)) {
Expand Down

0 comments on commit 9ca2e00

Please sign in to comment.