From d860010877dd3229fe111d7d4e8f61b8a6b45b83 Mon Sep 17 00:00:00 2001 From: niruiyu Date: Wed, 1 Dec 2010 05:57:13 +0000 Subject: [PATCH] Fix the bug that may not boot the first boot option but return back to front page. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11109 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c index f5431551f5..1cc383e3e5 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c @@ -143,6 +143,17 @@ BdsBootDeviceSelect ( // Parse the boot order to get boot option // BdsLibBuildOptionFromVar (&BootLists, L"BootOrder"); + + // + // When we didn't have chance to build boot option variables in the first + // full configuration boot (e.g.: Reset in the first page or in Device Manager), + // we have no boot options in the following mini configuration boot. + // Give the last chance to enumerate the boot options. + // + if (IsListEmpty (&BootLists)) { + BdsLibEnumerateAllBootOption (&BootLists); + } + Link = BootLists.ForwardLink; // -- 2.39.2