mirror of https://github.com/l4ka/pistachio.git
- Added a function to perform an iret to the current code location (e.g., to
re-enable NMIs).
This commit is contained in:
parent
0ab0c02d81
commit
3996a048f9
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue