]> git.proxmox.com Git - mirror_edk2.git/commitdiff
created a new library instance with CpuSleep and CpuFlushTlb
authorvprabhal <vprabhal@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 5 Oct 2007 18:52:48 +0000 (18:52 +0000)
committervprabhal <vprabhal@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 5 Oct 2007 18:52:48 +0000 (18:52 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4025 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Library/CpuLib.h

index 4d2b809625a538f9452666f26e3baa85c9772797..5ac8ee7179811a3330ff71f9f8890237a0df9c6a 100644 (file)
 #ifndef __CPU_LIB_H__\r
 #define __CPU_LIB_H__\r
 \r
+/**
+  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
+  );
+
+\r
 #endif
\ No newline at end of file