summaryrefslogtreecommitdiff
path: root/Kernel/Arch
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Arch')
-rw-r--r--Kernel/Arch/i386/PIC.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Arch/i386/PIC.cpp b/Kernel/Arch/i386/PIC.cpp
index ae0d48ff05..82db9c188d 100644
--- a/Kernel/Arch/i386/PIC.cpp
+++ b/Kernel/Arch/i386/PIC.cpp
@@ -21,6 +21,7 @@ namespace PIC {
void disable(u8 irq)
{
+ InterruptDisabler disabler;
u8 imr;
if (irq & 8) {
imr = IO::in8(PIC1_CMD);
@@ -35,6 +36,7 @@ void disable(u8 irq)
void enable(u8 irq)
{
+ InterruptDisabler disabler;
u8 imr;
if (irq & 8) {
imr = IO::in8(PIC1_CMD);