summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Bds/BootMenu.c
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2014-08-01 18:33:17 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-01 18:33:17 +0000
commitc3b6d97563982940a2af26671c371998684a2fd9 (patch)
tree0668a3ac5f1110a8a8ca3d7d74aa46299c2a7302 /ArmPlatformPkg/Bds/BootMenu.c
parentd8162fb5aad91c4b6745acd6b706a95b5c7522ee (diff)
downloadedk2-platforms-c3b6d97563982940a2af26671c371998684a2fd9.tar.xz
ArmPlatformPkg: Removed the global ImageHandle when UefiBootServicesTableLib is included
UefiBootServicesTableLib already defines gImageHandle that has been initialized with the value of ImageHandle. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15737 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Bds/BootMenu.c')
-rw-r--r--ArmPlatformPkg/Bds/BootMenu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ArmPlatformPkg/Bds/BootMenu.c b/ArmPlatformPkg/Bds/BootMenu.c
index b96a1c3f92..42212385a8 100644
--- a/ArmPlatformPkg/Bds/BootMenu.c
+++ b/ArmPlatformPkg/Bds/BootMenu.c
@@ -16,7 +16,6 @@
#include <Guid/ArmGlobalVariableHob.h>
-extern EFI_HANDLE mImageHandle;
extern BDS_LOAD_OPTION_SUPPORT *BdsLoadOptionSupportList;
/**
@@ -954,7 +953,7 @@ BootShell (
EFI_STATUS Status;
// Start EFI Shell
- Status = BdsLoadApplication (mImageHandle, L"Shell", 0, NULL);
+ Status = BdsLoadApplication (gImageHandle, L"Shell", 0, NULL);
if (Status == EFI_NOT_FOUND) {
Print (L"Error: EFI Application not found.\n");
} else if (EFI_ERROR(Status)) {