From 3996a048f955da1e19606e2a339aa469a4e5e69a Mon Sep 17 00:00:00 2001 From: Jan Stoess Date: Fri, 7 Dec 2007 19:24:30 +0100 Subject: [PATCH] - Added a function to perform an iret to the current code location (e.g., to re-enable NMIs). --- kernel/src/arch/x86/cpu.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/kernel/src/arch/x86/cpu.h b/kernel/src/arch/x86/cpu.h index b8122d51..133890c5 100644 --- a/kernel/src/arch/x86/cpu.h +++ b/kernel/src/arch/x86/cpu.h @@ -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) {