summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2010-05-28 01:59:30 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2010-05-28 01:59:30 +0000
commit451510385050b81a06e1f5091922afa6a637ccc7 (patch)
treee640b7dfab67316529545dec9d023cc302f3f67a /IntelFrameworkModulePkg
parent8e7c9e030fabde7566c2a734e4148621e49208b7 (diff)
downloadedk2-platforms-451510385050b81a06e1f5091922afa6a637ccc7.tar.xz
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
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r--IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h20
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c5
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf3
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/Ipf/ShadowRom.c47
4 files changed, 0 insertions, 75 deletions
diff --git a/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h b/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h
index 2624192a64..5b2045d693 100644
--- a/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h
+++ b/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h
@@ -612,26 +612,6 @@ typedef struct {
CHAR16 TargetName[1];
} 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
//
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
index 2f5f04d7b2..2d98d73eea 100644
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
+++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
@@ -200,11 +200,6 @@ BdsLibBootViaBootOption (
*ExitData = NULL;
//
- // Notes: put EFI64 ROM Shadow Solution
- //
- EFI64_SHADOW_ALL_LEGACY_ROM ();
-
- //
// Notes: this code can be remove after the s3 script table
// hook on the event EVT_SIGNAL_READY_TO_BOOT or
// EVT_SIGNAL_LEGACY_BOOT
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf b/IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
index 173777293b..8db77c12a6 100644
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
+++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
@@ -44,9 +44,6 @@
String.c
GenericBdsStrings.uni
-[Sources.IPF]
- Ipf/ShadowRom.c
-
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/Ipf/ShadowRom.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/Ipf/ShadowRom.c
deleted file mode 100644
index e018109802..0000000000
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/Ipf/ShadowRom.c
+++ /dev/null
@@ -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 ;
-}