diff options
author | vprabhal <vprabhal@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-05 18:52:48 +0000 |
---|---|---|
committer | vprabhal <vprabhal@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-05 18:52:48 +0000 |
commit | 58867095ca0304678d6cc7b5f8d1b19efa7b18e8 (patch) | |
tree | ab067647c5ef2aee3711fd36720740bd15039c74 /MdePkg/Include | |
parent | 1c4a7f9456627c1b6358d2515e4dc1d8af89da1c (diff) | |
download | edk2-platforms-58867095ca0304678d6cc7b5f8d1b19efa7b18e8.tar.xz |
created a new library instance with CpuSleep and CpuFlushTlb
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4025 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include')
-rw-r--r-- | MdePkg/Include/Library/CpuLib.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/MdePkg/Include/Library/CpuLib.h b/MdePkg/Include/Library/CpuLib.h index 4d2b809625..5ac8ee7179 100644 --- a/MdePkg/Include/Library/CpuLib.h +++ b/MdePkg/Include/Library/CpuLib.h @@ -15,4 +15,46 @@ #ifndef __CPU_LIB_H__
#define __CPU_LIB_H__
+/** + Places the CPU in a sleep state until an interrupt is received. + + Places the CPU in a sleep state until an interrupt is received. If interrupts + are disabled prior to calling this function, then the CPU will be placed in a + sleep state indefinitely. + +**/ +VOID +EFIAPI +CpuSleep ( + VOID + ); + + +/** + Requests CPU to pause for a short period of time. + + Requests CPU to pause for a short period of time. Typically used in MP + systems to prevent memory starvation while waiting for a spin lock. + +**/ +VOID +EFIAPI +CpuPause ( + VOID + ); + + +/** + Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU. + + Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU. + +**/ +VOID +EFIAPI +CpuFlushTlb ( + VOID + ); + +
#endif
\ No newline at end of file |