]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ia32/Processor.c
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Pei / PeiLib / Ia32 / Processor.c
CommitLineData
3eb9473e 1/*++\r
2\r
4ea9375a
HT
3Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 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 Processor.c\r
15\r
16Abstract:\r
17\r
18--*/\r
19\r
20#include "Tiano.h"\r
21#include "EfiJump.h"\r
22#include EFI_GUID_DEFINITION (PeiFlushInstructionCache)\r
23#include EFI_GUID_DEFINITION (PeiTransferControl)\r
24\r
25//\r
26// Prototypes\r
27//\r
28EFI_STATUS\r
29EFIAPI\r
30TransferControlSetJump (\r
31 IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL *This,\r
4b79797e 32 IN VOID *Jump\r
3eb9473e 33 );\r
34\r
35EFI_STATUS\r
36EFIAPI\r
37TransferControlLongJump (\r
38 IN EFI_PEI_TRANSFER_CONTROL_PROTOCOL *This,\r
4b79797e 39 IN VOID *Jump\r
3eb9473e 40 );\r
41\r
42EFI_STATUS\r
43EFIAPI\r
44FlushInstructionCacheFlush (\r
45 IN EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL *This,\r
46 IN EFI_PHYSICAL_ADDRESS Start,\r
47 IN UINT64 Length\r
48 );\r
49\r
50//\r
51// Table declarations\r
52//\r
53EFI_PEI_TRANSFER_CONTROL_PROTOCOL mTransferControl = {\r
54 TransferControlSetJump,\r
55 TransferControlLongJump,\r
56 sizeof (EFI_JUMP_BUFFER)\r
57};\r
58\r
59EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL mFlushInstructionCache = {\r
60 FlushInstructionCacheFlush\r
61};\r
62\r
63\r
64EFI_STATUS\r
65InstallEfiPeiTransferControl (\r
66 IN OUT EFI_PEI_TRANSFER_CONTROL_PROTOCOL **This\r
67 )\r
68/*++\r
69\r
70Routine Description:\r
71\r
72 Installs the pointer to the transfer control mechanism\r
73\r
74Arguments:\r
75\r
76 This - Pointer to transfer control mechanism.\r
77\r
78Returns:\r
79\r
80 EFI_SUCCESS - Successfully installed.\r
81\r
82--*/\r
83{\r
84 *This = &mTransferControl;\r
85 return EFI_SUCCESS;\r
86}\r
87\r
88EFI_STATUS\r
89InstallEfiPeiFlushInstructionCache (\r
90 IN OUT EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL **This\r
91 )\r
92/*++\r
93\r
94Routine Description:\r
95\r
96 Installs the pointer to the flush instruction cache mechanism\r
97\r
98Arguments:\r
99\r
100 This - Pointer to flush instruction cache mechanism.\r
101\r
102Returns:\r
103\r
104 EFI_SUCCESS - Successfully installed\r
105\r
106--*/\r
107{\r
108 *This = &mFlushInstructionCache;\r
109 return EFI_SUCCESS;\r
110}\r
111\r
112EFI_STATUS\r
113EFIAPI\r
114FlushInstructionCacheFlush (\r
115 IN EFI_PEI_FLUSH_INSTRUCTION_CACHE_PROTOCOL *This,\r
116 IN EFI_PHYSICAL_ADDRESS Start,\r
117 IN UINT64 Length\r
118 )\r
119/*++\r
120\r
121Routine Description:\r
122\r
123 This routine would provide support for flushing the CPU instruction cache.\r
124 In the case of IA32, this flushing is not necessary and is thus not implemented.\r
125\r
126Arguments:\r
127\r
128 This - Pointer to CPU Architectural Protocol interface\r
129 Start - Start adddress in memory to flush\r
130 Length - Length of memory to flush\r
131\r
132Returns:\r
133\r
134 Status\r
135 EFI_SUCCESS\r
136\r
137--*/\r
138{\r
139 return EFI_SUCCESS;\r
140}\r