From 451510385050b81a06e1f5091922afa6a637ccc7 Mon Sep 17 00:00:00 2001 From: niruiyu Date: Fri, 28 May 2010 01:59:30 +0000 Subject: [PATCH] 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 --- .../Include/Library/GenericBdsLib.h | 20 -------- .../Library/GenericBdsLib/BdsBoot.c | 5 -- .../Library/GenericBdsLib/GenericBdsLib.inf | 3 -- .../Library/GenericBdsLib/Ipf/ShadowRom.c | 47 ------------------- 4 files changed, 75 deletions(-) delete mode 100644 IntelFrameworkModulePkg/Library/GenericBdsLib/Ipf/ShadowRom.c 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 @@ -199,11 +199,6 @@ BdsLibBootViaBootOption ( *ExitDataSize = 0; *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 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.
-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 ; -} -- 2.39.2