UiApp: Move reset menu from Front Page to BMM Page.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18121 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Eric Dong 2015-07-31 02:14:26 +00:00 committed by ydong10
parent b44b55a2df
commit 00db1dfca2
5 changed files with 13 additions and 9 deletions

View File

@ -78,6 +78,14 @@ formset
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;
//
// This is where we will dynamically add a Action type op-code to show

View File

@ -603,6 +603,10 @@ BootMaintCallback (
break;
case FORM_RESET:
gRT->ResetSystem (EfiResetCold, EFI_SUCCESS, 0, NULL);
return EFI_UNSUPPORTED;
default:
break;
}

View File

@ -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

View File

@ -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;
}

View File

@ -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