PlatformRegisterFvBootOption (\r
CONST EFI_GUID *FileGuid,\r
CHAR16 *Description,\r
- UINT32 Attributes\r
+ UINT32 Attributes,\r
+ EFI_INPUT_KEY *Key\r
)\r
{\r
EFI_STATUS Status;\r
if (OptionIndex == -1) {\r
Status = EfiBootManagerAddLoadOptionVariable (&NewOption, MAX_UINTN);\r
ASSERT_EFI_ERROR (Status);\r
+ Status = EfiBootManagerAddKeyOptionVariable (NULL,\r
+ (UINT16)NewOption.OptionNumber, 0, Key, NULL);\r
+ ASSERT (Status == EFI_SUCCESS || Status == EFI_ALREADY_STARTED);\r
}\r
EfiBootManagerFreeLoadOption (&NewOption);\r
EfiBootManagerFreeLoadOptions (BootOptions, BootOptionCount);\r
UINTN FirmwareVerLength;\r
UINTN PosX;\r
UINTN PosY;\r
+ EFI_INPUT_KEY Key;\r
\r
FirmwareVerLength = StrLen (PcdGetPtr (PcdFirmwareVersionString));\r
\r
//\r
// Register UEFI Shell\r
//\r
+ Key.ScanCode = SCAN_NULL;\r
+ Key.UnicodeChar = L's';\r
PlatformRegisterFvBootOption (\r
- &gUefiShellFileGuid, L"UEFI Shell", LOAD_OPTION_ACTIVE\r
+ &gUefiShellFileGuid, L"UEFI Shell", LOAD_OPTION_ACTIVE, &Key\r
);\r
}\r
\r