mirror of https://github.com/acidanthera/audk.git
remove unnecessary EFI64_SHADOW_ALL_LEGACY_ROM in GenericBdsLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10548 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8e7c9e030f
commit
4515103850
|
@ -612,26 +612,6 @@ typedef struct {
|
||||||
CHAR16 TargetName[1];
|
CHAR16 TargetName[1];
|
||||||
} ISCSI_DEVICE_PATH_WITH_NAME;
|
} ISCSI_DEVICE_PATH_WITH_NAME;
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// Notes: EFI 64 shadow all option rom
|
|
||||||
//
|
|
||||||
#if defined (MDE_CPU_IPF)
|
|
||||||
#define EFI64_SHADOW_ALL_LEGACY_ROM() ShadowAllOptionRom ();
|
|
||||||
#else
|
|
||||||
#define EFI64_SHADOW_ALL_LEGACY_ROM()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
Shadow all Legacy OptionRom.
|
|
||||||
|
|
||||||
**/
|
|
||||||
VOID
|
|
||||||
EFIAPI
|
|
||||||
ShadowAllOptionRom (
|
|
||||||
VOID
|
|
||||||
);
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// BBS support macros and functions
|
// BBS support macros and functions
|
||||||
//
|
//
|
||||||
|
|
|
@ -199,11 +199,6 @@ BdsLibBootViaBootOption (
|
||||||
*ExitDataSize = 0;
|
*ExitDataSize = 0;
|
||||||
*ExitData = NULL;
|
*ExitData = NULL;
|
||||||
|
|
||||||
//
|
|
||||||
// Notes: put EFI64 ROM Shadow Solution
|
|
||||||
//
|
|
||||||
EFI64_SHADOW_ALL_LEGACY_ROM ();
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Notes: this code can be remove after the s3 script table
|
// Notes: this code can be remove after the s3 script table
|
||||||
// hook on the event EVT_SIGNAL_READY_TO_BOOT or
|
// hook on the event EVT_SIGNAL_READY_TO_BOOT or
|
||||||
|
|
|
@ -44,9 +44,6 @@
|
||||||
String.c
|
String.c
|
||||||
GenericBdsStrings.uni
|
GenericBdsStrings.uni
|
||||||
|
|
||||||
[Sources.IPF]
|
|
||||||
Ipf/ShadowRom.c
|
|
||||||
|
|
||||||
[Packages]
|
[Packages]
|
||||||
MdePkg/MdePkg.dec
|
MdePkg/MdePkg.dec
|
||||||
MdeModulePkg/MdeModulePkg.dec
|
MdeModulePkg/MdeModulePkg.dec
|
||||||
|
|
|
@ -1,47 +0,0 @@
|
||||||
/** @file
|
|
||||||
Shadow all option rom
|
|
||||||
|
|
||||||
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
|
|
||||||
http://opensource.org/licenses/bsd-license.php
|
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
|
|
||||||
**/
|
|
||||||
|
|
||||||
#include "InternalBdsLib.h"
|
|
||||||
|
|
||||||
UINT8 mShadowRomFlag = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
Shadow all opton ROM if the it is not done.
|
|
||||||
**/
|
|
||||||
VOID
|
|
||||||
EFIAPI
|
|
||||||
ShadowAllOptionRom(
|
|
||||||
VOID
|
|
||||||
)
|
|
||||||
{
|
|
||||||
EFI_STATUS Status;
|
|
||||||
EFI_LEGACY_BIOS_PROTOCOL *LegacyBios;
|
|
||||||
//
|
|
||||||
// Rom shadow only do once.
|
|
||||||
//
|
|
||||||
if (mShadowRomFlag == 0) {
|
|
||||||
Status = gBS->LocateProtocol (
|
|
||||||
&gEfiLegacyBiosProtocolGuid,
|
|
||||||
NULL,
|
|
||||||
(VOID **) &LegacyBios
|
|
||||||
);
|
|
||||||
if (!EFI_ERROR (Status)) {
|
|
||||||
LegacyBios->PrepareToBootEfi (LegacyBios, NULL, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
mShadowRomFlag = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
return ;
|
|
||||||
}
|
|
Loading…
Reference in New Issue