EfiBootManagerGetBootManagerMenu (&BootOption);\r
EfiBootManagerAddKeyOptionVariable (NULL, (UINT16) BootOption.OptionNumber, 0, &F2, NULL);\r
\r
- //\r
- // Register UEFI Shell\r
- //\r
- PlatformRegisterFvBootOption (PcdGetPtr (PcdShellFile), L"UEFI Shell", LOAD_OPTION_ACTIVE);\r
-\r
//\r
// Install ready to lock.\r
// This needs to be done before option rom dispatched.\r
EfiBootManagerConnectAll ();\r
EfiBootManagerRefreshAllBootOption ();\r
\r
+ //\r
+ // Register UEFI Shell\r
+ //\r
+ PlatformRegisterFvBootOption (PcdGetPtr (PcdShellFile), L"UEFI Shell", LOAD_OPTION_ACTIVE);\r
+ \r
Print (\r
L"\n"\r
L"F2 to enter Boot Manager Menu.\n"\r