mirror of https://github.com/acidanthera/audk.git
Remove unnecessary mBdsImageHandle.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11012 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9dd7461870
commit
fefefa4cb1
|
@ -19,7 +19,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#define _GENERIC_BDS_LIB_H_
|
#define _GENERIC_BDS_LIB_H_
|
||||||
|
|
||||||
#include <Protocol/UserManager.h>
|
#include <Protocol/UserManager.h>
|
||||||
extern EFI_HANDLE mBdsImageHandle;
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Constants which are variable names used to access variables.
|
/// Constants which are variable names used to access variables.
|
||||||
|
@ -569,7 +568,6 @@ DevicePathToStr (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *DevPath
|
IN EFI_DEVICE_PATH_PROTOCOL *DevPath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Internal definitions
|
// Internal definitions
|
||||||
//
|
//
|
||||||
|
@ -592,17 +590,12 @@ typedef struct {
|
||||||
DEV_PATH_FUNCTION Function;
|
DEV_PATH_FUNCTION Function;
|
||||||
} DEVICE_PATH_STRING_TABLE;
|
} DEVICE_PATH_STRING_TABLE;
|
||||||
|
|
||||||
extern EFI_GUID mEfiDevicePathMessagingUartFlowControlGuid;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
EFI_DEVICE_PATH_PROTOCOL Header;
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
||||||
EFI_GUID Guid;
|
EFI_GUID Guid;
|
||||||
UINT8 VendorDefinedData[1];
|
UINT8 VendorDefinedData[1];
|
||||||
} VENDOR_DEVICE_PATH_WITH_DATA;
|
} VENDOR_DEVICE_PATH_WITH_DATA;
|
||||||
|
|
||||||
|
|
||||||
extern EFI_GUID mEfiDevicePathMessagingSASGuid;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
EFI_DEVICE_PATH_PROTOCOL Header;
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
||||||
UINT16 NetworkProtocol;
|
UINT16 NetworkProtocol;
|
||||||
|
|
|
@ -292,7 +292,7 @@ BdsLibBootViaBootOption (
|
||||||
|
|
||||||
Status = gBS->LoadImage (
|
Status = gBS->LoadImage (
|
||||||
TRUE,
|
TRUE,
|
||||||
mBdsImageHandle,
|
gImageHandle,
|
||||||
DevicePath,
|
DevicePath,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0,
|
||||||
|
@ -320,7 +320,7 @@ BdsLibBootViaBootOption (
|
||||||
if (FilePath != NULL) {
|
if (FilePath != NULL) {
|
||||||
Status = gBS->LoadImage (
|
Status = gBS->LoadImage (
|
||||||
TRUE,
|
TRUE,
|
||||||
mBdsImageHandle,
|
gImageHandle,
|
||||||
FilePath,
|
FilePath,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0,
|
||||||
|
@ -2072,7 +2072,7 @@ BdsLibUpdateFvFileDevicePath (
|
||||||
FindFvFile = FALSE;
|
FindFvFile = FALSE;
|
||||||
FoundFvHandle = NULL;
|
FoundFvHandle = NULL;
|
||||||
Status = gBS->HandleProtocol (
|
Status = gBS->HandleProtocol (
|
||||||
mBdsImageHandle,
|
gImageHandle,
|
||||||
&gEfiLoadedImageProtocolGuid,
|
&gEfiLoadedImageProtocolGuid,
|
||||||
(VOID **) &LoadedImage
|
(VOID **) &LoadedImage
|
||||||
);
|
);
|
||||||
|
|
|
@ -79,7 +79,7 @@ BdsLibLoadDrivers (
|
||||||
//
|
//
|
||||||
Status = gBS->LoadImage (
|
Status = gBS->LoadImage (
|
||||||
FALSE,
|
FALSE,
|
||||||
mBdsImageHandle,
|
gImageHandle,
|
||||||
Option->DevicePath,
|
Option->DevicePath,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
After DxeCore finish DXE phase, gEfiBdsArchProtocolGuid->BdsEntry will be invoked
|
After DxeCore finish DXE phase, gEfiBdsArchProtocolGuid->BdsEntry will be invoked
|
||||||
to enter BDS phase.
|
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
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
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;
|
UINT16 *mBootNext = NULL;
|
||||||
|
|
||||||
EFI_HANDLE mBdsImageHandle;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Install Boot Device Selection Protocol
|
Install Boot Device Selection Protocol
|
||||||
|
@ -61,8 +59,6 @@ BdsInitialize (
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
mBdsImageHandle = ImageHandle;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Install protocol interface
|
// Install protocol interface
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Language settings
|
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
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -263,7 +263,7 @@ ExportFonts (
|
||||||
|
|
||||||
HiiHandle = HiiAddPackages (
|
HiiHandle = HiiAddPackages (
|
||||||
&mFontPackageGuid,
|
&mFontPackageGuid,
|
||||||
mBdsImageHandle,
|
gImageHandle,
|
||||||
&mFontBin,
|
&mFontBin,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
String support
|
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
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -33,7 +33,7 @@ InitializeStringSupport (
|
||||||
{
|
{
|
||||||
gStringPackHandle = HiiAddPackages (
|
gStringPackHandle = HiiAddPackages (
|
||||||
&mBdsStringPackGuid,
|
&mBdsStringPackGuid,
|
||||||
mBdsImageHandle,
|
gImageHandle,
|
||||||
BdsDxeStrings,
|
BdsDxeStrings,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue