From 00db1dfca269f861c5dde055b1ac7129ea99e1b8 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Fri, 31 Jul 2015 02:14:26 +0000 Subject: UiApp: Move reset menu from Front Page to BMM Page. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18121 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Application/UiApp/BootMaint/Bm.vfr | 8 ++++++++ MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c | 4 ++++ MdeModulePkg/Application/UiApp/BootMaint/FormGuid.h | 1 + MdeModulePkg/Application/UiApp/FrontPage.c | 8 -------- MdeModulePkg/Application/UiApp/FrontPage.h | 1 - 5 files changed, 13 insertions(+), 9 deletions(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Application/UiApp/BootMaint/Bm.vfr b/MdeModulePkg/Application/UiApp/BootMaint/Bm.vfr index 7247bbe997..92474124e2 100644 --- a/MdeModulePkg/Application/UiApp/BootMaint/Bm.vfr +++ b/MdeModulePkg/Application/UiApp/BootMaint/Bm.vfr @@ -77,6 +77,14 @@ formset help = STRING_TOKEN(STR_FORM_TIME_OUT_HELP), flags = INTERACTIVE, key = FORM_TIME_OUT_ID; + + subtitle text = STRING_TOKEN(STR_NULL_STRING); + + text + help = STRING_TOKEN(STR_RESET), + text = STRING_TOKEN(STR_RESET), + flags = INTERACTIVE, + key = FORM_RESET; label LABEL_BMM_PLATFORM_INFORMATION; // diff --git a/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c b/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c index aec6b85c22..4f46ed69c0 100644 --- a/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c +++ b/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c @@ -602,6 +602,10 @@ BootMaintCallback ( *ActionRequest = EFI_BROWSER_ACTION_REQUEST_FORM_SUBMIT_EXIT; break; + + case FORM_RESET: + gRT->ResetSystem (EfiResetCold, EFI_SUCCESS, 0, NULL); + return EFI_UNSUPPORTED; default: break; diff --git a/MdeModulePkg/Application/UiApp/BootMaint/FormGuid.h b/MdeModulePkg/Application/UiApp/BootMaint/FormGuid.h index 4b1efb7109..2126b3d67a 100644 --- a/MdeModulePkg/Application/UiApp/BootMaint/FormGuid.h +++ b/MdeModulePkg/Application/UiApp/BootMaint/FormGuid.h @@ -69,6 +69,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define KEY_VALUE_SAVE_AND_EXIT 0x110B #define KEY_VALUE_NO_SAVE_AND_EXIT 0x110C #define KEY_VALUE_BOOT_FROM_FILE 0x110D +#define FORM_RESET 0x110E #define MAXIMUM_NORMAL_KEY_VALUE 0x11FF diff --git a/MdeModulePkg/Application/UiApp/FrontPage.c b/MdeModulePkg/Application/UiApp/FrontPage.c index 4e80d7c6da..7d1cf2a633 100644 --- a/MdeModulePkg/Application/UiApp/FrontPage.c +++ b/MdeModulePkg/Application/UiApp/FrontPage.c @@ -449,14 +449,6 @@ FrontPageCallback ( InitializeLanguage(); break; - - case FRONT_PAGE_KEY_RESET: - // - // Reset - // - gRT->ResetSystem (EfiResetCold, EFI_SUCCESS, 0, NULL); - return EFI_UNSUPPORTED; - default: break; } diff --git a/MdeModulePkg/Application/UiApp/FrontPage.h b/MdeModulePkg/Application/UiApp/FrontPage.h index 08d16929cf..c5d4c42746 100644 --- a/MdeModulePkg/Application/UiApp/FrontPage.h +++ b/MdeModulePkg/Application/UiApp/FrontPage.h @@ -56,7 +56,6 @@ extern BOOLEAN gConnectAllHappened; #define FRONT_PAGE_KEY_BOOT_MANAGER 0x1064 #define FRONT_PAGE_KEY_DEVICE_MANAGER 0x8567 #define FRONT_PAGE_KEY_BOOT_MAINTAIN 0x9876 -#define FRONT_PAGE_KEY_RESET 0X7654 #define LABEL_SELECT_LANGUAGE 0x1000 #define LABEL_PLATFORM_INFORMATION 0x1001 -- cgit v1.2.3