]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/BdsDxe: Fix PlatformRecovery issue
authorSunny Wang <sunnywang@hpe.com>
Wed, 16 Oct 2019 09:19:22 +0000 (17:19 +0800)
committerJian J Wang <jian.j.wang@intel.com>
Wed, 30 Oct 2019 05:34:07 +0000 (13:34 +0800)
commitb15646484eaffcf7cc464fdea0214498f26addc2
tree65f6637a9c7fd035b1197ed4b5f194af5f348d41
parent9f4fbd56d43054cc73d722c1643659f9741c0fcf
MdeModulePkg/BdsDxe: Fix PlatformRecovery issue

For now, PlatformRecovery doesn't work if OsIndications variable
doesn't exist, which is wrong.
According to the UEFI specification section 3.4.1 and 3.4.2, if
processing of BootOrder does not result in success, the OsRecovery
and PlatformRecovery options should still be processed regardless of
the existence of the OsIndications variable.
Therefore, update the code to check PcdPlatformRecoverySupport instead
of the value of OsIndications variable (PlatformRecovery) to fix
this issue.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Cc: Walon Li <walon.li@hpe.com>
Signed-off-by: Sunny Wang <sunnywang@hpe.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Acked-by: Jian J Wang <jian.j.wang@intel.com>
MdeModulePkg/Universal/BdsDxe/BdsEntry.c