]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Provides CPU architecture specific functions that can not be defined\r | |
3 | in the Base Library due to dependencies on the PAL Library\r | |
4 | \r | |
5 | The CPU Library provides services to flush CPU TLBs and place the CPU in a sleep state.\r | |
6 | The implementation of these services on Itanium processors requires the use of PAL Calls.\r | |
7 | PAL Calls require PEI and DXE specific mechanisms to look up PAL Entry Point.\r | |
8 | As a result, these services could not be defined in the Base Library.\r | |
9 | \r | |
10 | Copyright (c) 2006 - 2008, Intel Corporation<BR>\r | |
11 | All rights reserved. This program and the accompanying materials\r | |
12 | are licensed and made available under the terms and conditions of the BSD License\r | |
13 | which accompanies this distribution. The full text of the license may be found at\r | |
14 | http://opensource.org/licenses/bsd-license.php\r | |
15 | \r | |
16 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
17 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
18 | \r | |
19 | **/\r | |
20 | \r | |
21 | #ifndef __CPU_LIB_H__\r | |
22 | #define __CPU_LIB_H__\r | |
23 | \r | |
24 | /**\r | |
25 | Places the CPU in a sleep state until an interrupt is received.\r | |
26 | \r | |
27 | Places the CPU in a sleep state until an interrupt is received. If interrupts\r | |
28 | are disabled prior to calling this function, then the CPU will be placed in a\r | |
29 | sleep state indefinitely.\r | |
30 | \r | |
31 | **/\r | |
32 | VOID\r | |
33 | EFIAPI\r | |
34 | CpuSleep (\r | |
35 | VOID\r | |
36 | );\r | |
37 | \r | |
38 | /**\r | |
39 | Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r | |
40 | \r | |
41 | Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r | |
42 | \r | |
43 | **/\r | |
44 | VOID\r | |
45 | EFIAPI\r | |
46 | CpuFlushTlb (\r | |
47 | VOID\r | |
48 | );\r | |
49 | \r | |
50 | \r | |
51 | #endif\r |