diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-14 13:41:45 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-14 16:16:37 +0100 |
commit | f69257755962a3beaee2fbdfbdad0c3d4396843d (patch) | |
tree | a704af46dd9a2b92d53ace19f74e5fff7ba4054b /Kernel/Arch | |
parent | 8de5a0be4164e0db4401c9b6d5fd0c2799c52feb (diff) | |
download | serenity-f69257755962a3beaee2fbdfbdad0c3d4396843d.zip |
Kernel: Disable interrupts while modifying the PIC IMR
Diffstat (limited to 'Kernel/Arch')
-rw-r--r-- | Kernel/Arch/i386/PIC.cpp | 2 |
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); |