summaryrefslogtreecommitdiff
path: root/Kernel/Arch/i386
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Arch/i386')
-rw-r--r--Kernel/Arch/i386/CPU.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Kernel/Arch/i386/CPU.h b/Kernel/Arch/i386/CPU.h
index a5d4a98712..1c53a48660 100644
--- a/Kernel/Arch/i386/CPU.h
+++ b/Kernel/Arch/i386/CPU.h
@@ -837,6 +837,14 @@ public:
return *this;
}
+ void set_interrupt_flag_on_destruction(bool flag)
+ {
+ if (flag)
+ m_prev_flags |= 0x200;
+ else
+ m_prev_flags &= ~0x200;
+ }
+
private:
u32 m_prev_flags { 0 };
bool m_valid { false };