]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ebc/CpuBreakpoint.c
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / Ebc / CpuBreakpoint.c
CommitLineData
3eb9473e 1/*++\r
2\r
2c7e5c2f
HT
3Copyright (c) 2004 - 2006, 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 CpuBreakpoint.c\r
16 \r
17Abstract: \r
18\r
19\r
20--*/\r
21\r
c7f33ca4 22#include "BaseLibInternals.h"\r
3eb9473e 23\r
3eb9473e 24/**\r
25 Generates a breakpoint on the CPU.\r
26\r
27 Generates a breakpoint on the CPU. The breakpoint must be implemented such\r
28 that code can resume normal execution after the breakpoint.\r
29\r
30**/\r
31VOID\r
32EFIAPI\r
33CpuBreakpoint (\r
34 VOID\r
35 )\r
36{\r
37 _break (3);\r
38}\r
39\r
40/**\r
41 Used to serialize load and store operations.\r
42\r
43 All loads and stores that proceed calls to this function are guaranteed to be\r
44 globally visible when this function returns.\r
45\r
46**/\r
47VOID\r
48EFIAPI\r
49MemoryFence (\r
50 VOID\r
51 )\r
52{\r
53}\r
54\r
55/**\r
56 Disables CPU interrupts.\r
57\r
58 Disables CPU interrupts.\r
59\r
60**/\r
61VOID\r
62EFIAPI\r
63DisableInterrupts (\r
64 VOID\r
65 )\r
66{\r
67 ASSERT (FALSE);\r
68}\r
69\r
70/**\r
71 Enables CPU interrupts.\r
72\r
73 Enables CPU interrupts.\r
74\r
75**/\r
76VOID\r
77EFIAPI\r
78EnableInterrupts (\r
79 VOID\r
80 )\r
81{\r
82 ASSERT (FALSE);\r
83}\r
84\r
85/**\r
86 Retrieves the current CPU interrupt state.\r
87\r
88 Retrieves the current CPU interrupt state. Returns TRUE is interrupts are\r
89 currently enabled. Otherwise returns FALSE.\r
90\r
91 @retval TRUE CPU interrupts are enabled.\r
92 @retval FALSE CPU interrupts are disabled.\r
93\r
94**/\r
95BOOLEAN\r
96EFIAPI\r
97GlueGetInterruptState (\r
98 VOID\r
99 )\r
100{\r
101 ASSERT (FALSE);\r
102 return FALSE;\r
103}\r
104\r
105/**\r
106 Enables CPU interrupts for the smallest window required to capture any\r
107 pending interrupts.\r
108\r
109 Enables CPU interrupts for the smallest window required to capture any\r
110 pending interrupts.\r
111\r
112**/\r
113VOID\r
114EFIAPI\r
115EnableDisableInterrupts (\r
116 VOID\r
117 )\r
118{\r
119 EnableInterrupts ();\r
120 DisableInterrupts ();\r
121}\r
122\r
123/**\r
124 Requests CPU to pause for a short period of time.\r
125\r
126 Requests CPU to pause for a short period of time. Typically used in MP\r
127 systems to prevent memory starvation while waiting for a spin lock.\r
128\r
129**/\r
130VOID\r
131EFIAPI\r
132CpuPause (\r
133 VOID\r
134 )\r
135{\r
136}\r
137\r
138/**\r
139 Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r
140\r
141 Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r
142\r
143**/\r
144VOID\r
145EFIAPI\r
146CpuFlushTlb (\r
147 VOID\r
148 )\r
149{\r
150 ASSERT (FALSE);\r
151}\r
152\r
153/**\r
154 Places the CPU in a sleep state until an interrupt is received.\r
155\r
156 Places the CPU in a sleep state until an interrupt is received. If interrupts\r
157 are disabled prior to calling this function, then the CPU will be placed in a\r
158 sleep state indefinitely.\r
159\r
160**/\r
161VOID\r
162EFIAPI\r
163CpuSleep (\r
164 VOID\r
165 )\r
166{\r
167}\r