]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /** @file\r |
2 | Base Library CPU Functions for EBC\r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation<BR>\r | |
5 | All rights reserved. This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | extern\r | |
16 | UINT64\r | |
17 | _break (\r | |
18 | CHAR8 BreakCode\r | |
19 | );\r | |
20 | \r | |
21 | /**\r | |
22 | Generates a breakpoint on the CPU.\r | |
23 | \r | |
24 | Generates a breakpoint on the CPU. The breakpoint must be implemented such\r | |
25 | that code can resume normal execution after the breakpoint.\r | |
26 | \r | |
27 | **/\r | |
28 | VOID\r | |
29 | EFIAPI\r | |
30 | CpuBreakpoint (\r | |
31 | VOID\r | |
32 | )\r | |
33 | {\r | |
34 | _break (3);\r | |
35 | }\r | |
36 | \r | |
37 | /**\r | |
38 | Used to serialize load and store operations.\r | |
39 | \r | |
40 | All loads and stores that proceed calls to this function are guaranteed to be\r | |
41 | globally visible when this function returns.\r | |
42 | \r | |
43 | **/\r | |
44 | VOID\r | |
45 | EFIAPI\r | |
46 | MemoryFence (\r | |
47 | VOID\r | |
48 | )\r | |
49 | {\r | |
50 | }\r | |
51 | \r | |
52 | /**\r | |
53 | Disables CPU interrupts.\r | |
54 | \r | |
55 | Disables CPU interrupts.\r | |
56 | \r | |
57 | **/\r | |
58 | VOID\r | |
59 | EFIAPI\r | |
60 | DisableInterrupts (\r | |
61 | VOID\r | |
62 | )\r | |
63 | {\r | |
64 | ASSERT (FALSE);\r | |
65 | }\r | |
66 | \r | |
67 | /**\r | |
68 | Enables CPU interrupts.\r | |
69 | \r | |
70 | Enables CPU interrupts.\r | |
71 | \r | |
72 | **/\r | |
73 | VOID\r | |
74 | EFIAPI\r | |
75 | EnableInterrupts (\r | |
76 | VOID\r | |
77 | )\r | |
78 | {\r | |
79 | ASSERT (FALSE);\r | |
80 | }\r | |
81 | \r | |
82 | /**\r | |
83 | Retrieves the current CPU interrupt state.\r | |
84 | \r | |
85 | Retrieves the current CPU interrupt state. Returns TRUE is interrupts are\r | |
86 | currently enabled. Otherwise returns FALSE.\r | |
87 | \r | |
88 | @retval TRUE CPU interrupts are enabled.\r | |
89 | @retval FALSE CPU interrupts are disabled.\r | |
90 | \r | |
91 | **/\r | |
92 | BOOLEAN\r | |
93 | EFIAPI\r | |
94 | GetInterruptState (\r | |
95 | VOID\r | |
96 | )\r | |
97 | {\r | |
98 | ASSERT (FALSE);\r | |
99 | return FALSE;\r | |
100 | }\r |