]> git.proxmox.com Git - mirror_edk2.git/blame - 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
fb3df220 1/** @file\r
50a64e5b 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
d80b2f71 4 \r
5 The CPU Library provides services to flush CPU TLBs and place the CPU in a sleep state.\r
1a2f870c 6 The implementation of these services on Itanium processors requires the use of PAL Calls.\r
d80b2f71 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
fb3df220 9\r
3e5c3238 10Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
50a64e5b 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
fb3df220 15\r
50a64e5b 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
fb3df220 18\r
fb3df220 19**/\r
20\r
21#ifndef __CPU_LIB_H__\r
22#define __CPU_LIB_H__\r
23\r
7270fe87 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
58867095 50\r
8336fd87 51#endif\r