- Added a function to perform an iret to the current code location (e.g., to

re-enable NMIs).
This commit is contained in:
Jan Stoess 2007-12-07 19:24:30 +01:00
parent 0ab0c02d81
commit 3996a048f9
1 changed files with 10 additions and 0 deletions

View File

@ -235,6 +235,16 @@ INLINE void x86_sleep(void)
:); :);
} }
INLINE void x86_sleep_uninterruptible(void)
{
__asm__ __volatile__(
"pushf \n\t"
"cli \n\t"
"hlt \n\t"
"popf \n\t"
::: "memory"
);
}
INLINE void x86_invlpg (word_t addr) INLINE void x86_invlpg (word_t addr)
{ {