mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
Kernel: Disable interrupts while modifying the PIC IMR
This commit is contained in:
parent
8de5a0be41
commit
f692577559
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue