]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/Bds: Fix a bug that may causes S4 fails to resume
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 5 Jan 2017 01:56:11 +0000 (09:56 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 6 Jan 2017 12:46:42 +0000 (20:46 +0800)
commit0dc3359ac677b80475c6f4933c513089ad451ebe
tree40fa7f7d719c79490d05b0278466b96a439b6ba5
parent5016d46603addf62656590e83375074abc321f23
MdeModulePkg/Bds: Fix a bug that may causes S4 fails to resume

When firmware boots to UiApp, the memory type information settings
are saved to NV storage and the settings in HOB are changed as well.
Because UiApp is an APPLICATION type of boot option, system doesn't
reset when settings change.
But when user selects OS to boot in UiApp, because the settings in HOB
was updated when booting to UiApp, the BDS doesn't think the settings
change, expected reset doesn't happen.

The patch fixes this issue to not update the settings in HOB.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Sunny Wang <sunnywang@hpe.com>
MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c