MdeModulePkg/UefiBootManagerLib: Always create MemoryTypeInfo variable
Align to old BDS behavior (IntelFrameworkModulePkg/BDS) to always create MemoryTypeInfo variable regardless of the PcdResetOnMemoryTypeInformationChange value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18926 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1765,11 +1765,9 @@ EfiBootManagerBoot (
|
||||
// 6. Adjust the different type memory page number just before booting
|
||||
// and save the updated info into the variable for next boot to use
|
||||
//
|
||||
if ((BootOption->Attributes & LOAD_OPTION_CATEGORY) == LOAD_OPTION_CATEGORY_BOOT) {
|
||||
if (PcdGetBool (PcdResetOnMemoryTypeInformationChange)) {
|
||||
BmSetMemoryTypeInformationVariable ();
|
||||
}
|
||||
}
|
||||
BmSetMemoryTypeInformationVariable (
|
||||
(BOOLEAN) ((BootOption->Attributes & LOAD_OPTION_CATEGORY) == LOAD_OPTION_CATEGORY_BOOT)
|
||||
);
|
||||
|
||||
DEBUG_CODE_BEGIN();
|
||||
if (BootOption->Description == NULL) {
|
||||
|
Reference in New Issue
Block a user