summaryrefslogtreecommitdiff
path: root/SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2016-05-04 10:29:26 +0800
committerStar Zeng <star.zeng@intel.com>2016-05-04 10:57:05 +0800
commitf14307489f7a50415239211d76a4a4190db22deb (patch)
tree93af88f2a09cca27b8c189bf8c56a07bf54c6746 /SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c
parent12087ff6d63e50fb6c588caf33c9b2c4b31c2dbd (diff)
downloadedk2-platforms-f14307489f7a50415239211d76a4a4190db22deb.tar.xz
SecurityPkg OpalPasswordDxe: Install menu without device dependency.
Change design to always install opal menu. Current implementation only install menu when device connect. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c')
-rw-r--r--SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c b/SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c
index e06ce4a6a1..4a4fa6a56d 100644
--- a/SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c
+++ b/SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c
@@ -24,10 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
OPAL_DRIVER mOpalDriver;
-// flag to track hii installation
-BOOLEAN gHiiInstalled = FALSE;
-
-
#define MAX_PASSWORD_SIZE 32
#define MAX_PASSWORD_TRY_COUNT 5
@@ -732,6 +728,11 @@ EfiDriverEntryPoint(
&ReadyToBootEvent
);
+ //
+ // Install Hii packages.
+ //
+ HiiInstall();
+
return Status;
}
@@ -966,14 +967,6 @@ OpalEfiDriverBindingStart(
AddDeviceToTail(Dev);
//
- // Install Hii if it hasn't already been installed
- //
- if (!gHiiInstalled) {
- HiiInstall();
- gHiiInstalled = TRUE;
- }
-
- //
// check if device is locked and prompt for password
//
OpalDriverRequestPassword (Dev);