Add an inline function cpu_pause() for the IA32 'pause' instruction.

This commit is contained in:
jhb 2002-05-21 20:21:53 +00:00
parent 8623a7bc17
commit 1a9e2f75a7
2 changed files with 12 additions and 0 deletions

View File

@ -560,6 +560,12 @@ load_dr7(u_int sel)
__asm __volatile("movl %0,%%dr7" : : "r" (sel));
}
static __inline void
cpu_pause(void)
{
__asm __volatile("pause");
}
static __inline register_t
intr_disable(void)
{

View File

@ -560,6 +560,12 @@ load_dr7(u_int sel)
__asm __volatile("movl %0,%%dr7" : : "r" (sel));
}
static __inline void
cpu_pause(void)
{
__asm __volatile("pause");
}
static __inline register_t
intr_disable(void)
{