]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Include/Library/CpuLib.h
Second set of changes based on a review of the code comments in the Include directory...
[mirror_edk2.git] / MdePkg / Include / Library / CpuLib.h
... / ...
CommitLineData
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
10Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
11All rights reserved. This program and the accompanying materials\r
12are licensed and made available under the terms and conditions of the BSD License\r
13which accompanies this distribution. The full text of the license may be found at\r
14http://opensource.org/licenses/bsd-license.php\r
15\r
16THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
17WITHOUT 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
32VOID\r
33EFIAPI\r
34CpuSleep (\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
44VOID\r
45EFIAPI\r
46CpuFlushTlb (\r
47 VOID\r
48 );\r
49\r
50\r
51#endif\r