mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
1c4a7f9456
commit
58867095ca
|
@ -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
|
Loading…
Reference in New Issue