summaryrefslogtreecommitdiff
path: root/Kernel/i386.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/i386.h')
-rw-r--r--Kernel/i386.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/i386.h b/Kernel/i386.h
index 10ad9ea4ba..0eaae76ce0 100644
--- a/Kernel/i386.h
+++ b/Kernel/i386.h
@@ -92,6 +92,11 @@ static inline dword cpuFlags()
return flags;
}
+inline bool are_interrupts_enabled()
+{
+ return cpuFlags() & 0x200;
+}
+
class InterruptDisabler {
public:
InterruptDisabler()