]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - EdkNt32Pkg/Library/EdkGenericBdsLib/Ipf/ShadowRom.c
Removed duplicate PalCallStatic functions in different libraries. Moved ReadItc and...
[mirror_edk2.git] / EdkNt32Pkg / Library / EdkGenericBdsLib / Ipf / ShadowRom.c
... / ...
CommitLineData
1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 \r
14 ShadowRom.c\r
15\r
16Abstract:\r
17\r
18 Shadow all option rom\r
19\r
20Revision History\r
21\r
22--*/\r
23\r
24#include "Tiano.h"\r
25#include "EfiDriverLib.h"\r
26\r
27#include EFI_PROTOCOL_DEFINITION (LegacyBios)\r
28\r
29UINT8 mShadowRomFlag = 0;\r
30\r
31VOID\r
32ShadowAllOptionRom()\r
33{\r
34 EFI_STATUS Status;\r
35 EFI_LEGACY_BIOS_PROTOCOL *LegacyBios;\r
36 //\r
37 // Rom shadow only do once.\r
38 //\r
39 if (mShadowRomFlag == 0) {\r
40 Status = gBS->LocateProtocol (\r
41 &gEfiLegacyBiosProtocolGuid,\r
42 NULL,\r
43 &LegacyBios\r
44 );\r
45 if (!EFI_ERROR (Status)) {\r
46 LegacyBios->PrepareToBootEfi (LegacyBios, NULL, NULL);\r
47 }\r
48\r
49 mShadowRomFlag = 1;\r
50 }\r
51\r
52 return ;\r
53}\r