diff options
author | niruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-08 06:56:57 +0000 |
---|---|---|
committer | niruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-08 06:56:57 +0000 |
commit | fefefa4cb15eed75dbe3d4867768893bf6d96a30 (patch) | |
tree | 5093068d04183e22eba8c9c7f1540c6191a4fb15 | |
parent | 9dd7461870e0239ce5b1d6573a3ca0bcd86b7a03 (diff) | |
download | edk2-fefefa4cb15eed75dbe3d4867768893bf6d96a30.zip edk2-fefefa4cb15eed75dbe3d4867768893bf6d96a30.tar.gz edk2-fefefa4cb15eed75dbe3d4867768893bf6d96a30.tar.bz2 |
Remove unnecessary mBdsImageHandle.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11012 6f19259b-4bc3-4df7-8a09-765794883524
6 files changed, 9 insertions, 20 deletions
diff --git a/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h b/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h index 5b2045d..64732e5 100644 --- a/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h +++ b/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h @@ -19,7 +19,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define _GENERIC_BDS_LIB_H_
#include <Protocol/UserManager.h>
-extern EFI_HANDLE mBdsImageHandle;
///
/// Constants which are variable names used to access variables.
@@ -569,7 +568,6 @@ DevicePathToStr ( IN EFI_DEVICE_PATH_PROTOCOL *DevPath
);
-
//
// Internal definitions
//
@@ -592,17 +590,12 @@ typedef struct { DEV_PATH_FUNCTION Function;
} DEVICE_PATH_STRING_TABLE;
-extern EFI_GUID mEfiDevicePathMessagingUartFlowControlGuid;
-
typedef struct {
EFI_DEVICE_PATH_PROTOCOL Header;
EFI_GUID Guid;
UINT8 VendorDefinedData[1];
} VENDOR_DEVICE_PATH_WITH_DATA;
-
-extern EFI_GUID mEfiDevicePathMessagingSASGuid;
-
typedef struct {
EFI_DEVICE_PATH_PROTOCOL Header;
UINT16 NetworkProtocol;
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c index 2d98d73..a6a9118 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c @@ -292,7 +292,7 @@ BdsLibBootViaBootOption ( Status = gBS->LoadImage (
TRUE,
- mBdsImageHandle,
+ gImageHandle,
DevicePath,
NULL,
0,
@@ -320,7 +320,7 @@ BdsLibBootViaBootOption ( if (FilePath != NULL) {
Status = gBS->LoadImage (
TRUE,
- mBdsImageHandle,
+ gImageHandle,
FilePath,
NULL,
0,
@@ -2072,7 +2072,7 @@ BdsLibUpdateFvFileDevicePath ( FindFvFile = FALSE;
FoundFvHandle = NULL;
Status = gBS->HandleProtocol (
- mBdsImageHandle,
+ gImageHandle,
&gEfiLoadedImageProtocolGuid,
(VOID **) &LoadedImage
);
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c index 2a12f16..3d2e199 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c @@ -79,7 +79,7 @@ BdsLibLoadDrivers ( //
Status = gBS->LoadImage (
FALSE,
- mBdsImageHandle,
+ gImageHandle,
Option->DevicePath,
NULL,
0,
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c index f89d8b8..f543155 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c @@ -5,7 +5,7 @@ After DxeCore finish DXE phase, gEfiBdsArchProtocolGuid->BdsEntry will be invoked
to enter BDS phase.
-Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2010, 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
@@ -38,8 +38,6 @@ EFI_BDS_ARCH_PROTOCOL gBds = { UINT16 *mBootNext = NULL;
-EFI_HANDLE mBdsImageHandle;
-
/**
Install Boot Device Selection Protocol
@@ -61,8 +59,6 @@ BdsInitialize ( {
EFI_STATUS Status;
- mBdsImageHandle = ImageHandle;
-
//
// Install protocol interface
//
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/Language.c b/IntelFrameworkModulePkg/Universal/BdsDxe/Language.c index 09f48b8..ef2e2d8 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/Language.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/Language.c @@ -1,7 +1,7 @@ /** @file
Language settings
-Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2010, 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
@@ -263,7 +263,7 @@ ExportFonts ( HiiHandle = HiiAddPackages (
&mFontPackageGuid,
- mBdsImageHandle,
+ gImageHandle,
&mFontBin,
NULL
);
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/String.c b/IntelFrameworkModulePkg/Universal/BdsDxe/String.c index 9924352..d02001b 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/String.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/String.c @@ -1,7 +1,7 @@ /** @file
String support
-Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2010, 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
@@ -33,7 +33,7 @@ InitializeStringSupport ( {
gStringPackHandle = HiiAddPackages (
&mBdsStringPackGuid,
- mBdsImageHandle,
+ gImageHandle,
BdsDxeStrings,
NULL
);
|