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