summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Application/UiApp
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-06-06 11:01:55 +0800
committerStar Zeng <star.zeng@intel.com>2016-06-21 12:33:47 +0800
commita0d1206f845f71fbe27adb5958d285e2a901f260 (patch)
tree2ddd48ea97591fe7a951be273cc2eff0919b4fe9 /MdeModulePkg/Application/UiApp
parent4b46d4b64151e789ed44ed8d93022ea02a0d6959 (diff)
downloadedk2-a0d1206f845f71fbe27adb5958d285e2a901f260.zip
edk2-a0d1206f845f71fbe27adb5958d285e2a901f260.tar.gz
edk2-a0d1206f845f71fbe27adb5958d285e2a901f260.tar.bz2
MdeModulePkg/UiApp: Connect all devices in UiApp if needed
If the connect all action has not been performed before. We do it in UiApp now. Cc: Liming Gao <liming.gao@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg/Application/UiApp')
-rw-r--r--MdeModulePkg/Application/UiApp/FrontPage.c6
-rw-r--r--MdeModulePkg/Application/UiApp/FrontPage.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/MdeModulePkg/Application/UiApp/FrontPage.c b/MdeModulePkg/Application/UiApp/FrontPage.c
index 1c0afa5..d1372d3 100644
--- a/MdeModulePkg/Application/UiApp/FrontPage.c
+++ b/MdeModulePkg/Application/UiApp/FrontPage.c
@@ -19,7 +19,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_GUID mFrontPageGuid = FRONT_PAGE_FORMSET_GUID;
-BOOLEAN gConnectAllHappened = FALSE;
BOOLEAN mFeaturerSwitch = TRUE;
BOOLEAN mResetRequired = FALSE;
@@ -990,9 +989,10 @@ UiEntry (
//
// Indicate if the connect all has been performed before.
+ // If has not been performed before, do here.
//
- if (ConnectAllHappened) {
- gConnectAllHappened = TRUE;
+ if (!ConnectAllHappened) {
+ EfiBootManagerConnectAll ();
}
//
diff --git a/MdeModulePkg/Application/UiApp/FrontPage.h b/MdeModulePkg/Application/UiApp/FrontPage.h
index 1da56ac..642d9d0 100644
--- a/MdeModulePkg/Application/UiApp/FrontPage.h
+++ b/MdeModulePkg/Application/UiApp/FrontPage.h
@@ -1,7 +1,7 @@
/** @file
Head file for front page.
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -26,7 +26,6 @@ extern UINT8 FrontPageVfrBin[];
extern EFI_FORM_BROWSER2_PROTOCOL *gFormBrowser2;
-extern BOOLEAN gConnectAllHappened;
#define SMBIOS_TYPE4_CPU_SOCKET_POPULATED BIT6