mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
Revert "Kernel: Replace IRQHandler with the new InterruptHandler class"
This reverts commit 6c72736b26
.
I am unable to boot on my home machine with this change in the tree.
This commit is contained in:
parent
8e21e31b3a
commit
e64c335e5a
29 changed files with 169 additions and 193 deletions
|
@ -75,20 +75,6 @@ void enable(u8 irq)
|
|||
}
|
||||
}
|
||||
|
||||
bool is_enabled(u8 irq)
|
||||
{
|
||||
InterruptDisabler disabler;
|
||||
u8 imr;
|
||||
if (irq & 8) {
|
||||
imr = IO::in8(PIC1_CMD);
|
||||
imr &= (1 << (irq - 8));
|
||||
} else {
|
||||
imr = IO::in8(PIC0_CMD);
|
||||
imr &= (1 << irq);
|
||||
}
|
||||
return (!!imr);
|
||||
}
|
||||
|
||||
void eoi(u8 irq)
|
||||
{
|
||||
if (irq & 8)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue