]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/BdsDxe: Fix calling PlatformBootManagerWaitCallback on 0
authorLaszlo Ersek <lersek@redhat.com>
Fri, 11 Oct 2019 15:43:37 +0000 (23:43 +0800)
committerLiming Gao <liming.gao@intel.com>
Tue, 15 Oct 2019 00:02:17 +0000 (08:02 +0800)
commit4d05a4b709ce52d4649698f887a1358246fa4437
tree6329dda3f6d72db00e8ec3b86c206fdda713b78a
parenta1f94045ffe9218ec438c4d23980de4243d21cd0
MdeModulePkg/BdsDxe: Fix calling PlatformBootManagerWaitCallback on 0

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2266

Commit 2de1f611be06ded3a59726a4052a9039be7d459b introduced a regression
whereas platforms that did set PcdPlatformBootTimeOut to 0 are now getting
an unexpected call to PlatformBootManagerWaitCallback().

This patch also ensures that, if PcdPlatformBootTimeOut is 0xFFFF we don't
call PlatformBootManagerWaitCallback() with a zero argument as doing so
would produce an unwarranted jump to full progress completion which is
likely to throw off users.

Signed-off-by: Pete Batard <pete@akeo.ie>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Universal/BdsDxe/BdsEntry.c