]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/Library/CpuLib.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / Library / CpuLib.h
1 /** @file
2 Provides CPU architecture specific functions that can not be defined
3 in the Base Library due to dependencies on the PAL Library
4
5 The CPU Library provides services to flush CPU TLBs and place the CPU in a sleep state.
6 The implementation of these services on Itanium processors requires the use of PAL Calls.
7 PAL Calls require PEI and DXE specific mechanisms to look up PAL Entry Point.
8 As a result, these services could not be defined in the Base Library.
9
10 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
11 SPDX-License-Identifier: BSD-2-Clause-Patent
12
13 **/
14
15 #ifndef __CPU_LIB_H__
16 #define __CPU_LIB_H__
17
18 /**
19 Places the CPU in a sleep state until an interrupt is received.
20
21 Places the CPU in a sleep state until an interrupt is received. If interrupts
22 are disabled prior to calling this function, then the CPU will be placed in a
23 sleep state indefinitely.
24
25 **/
26 VOID
27 EFIAPI
28 CpuSleep (
29 VOID
30 );
31
32 /**
33 Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.
34
35 Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.
36
37 **/
38 VOID
39 EFIAPI
40 CpuFlushTlb (
41 VOID
42 );
43
44
45 #endif