summaryrefslogtreecommitdiff
path: root/Kernel/PIC.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-17 00:11:08 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-17 00:14:07 +0100
commit9d05f6b7a797ed3424bc5d0024d21e496bb4c87b (patch)
tree03369d115ecb7e6dce30a98091cb56172e9be31a /Kernel/PIC.cpp
parent2cf477a1512a1ca3f0571cb6de42b7a89a3a4565 (diff)
downloadserenity-9d05f6b7a797ed3424bc5d0024d21e496bb4c87b.zip
Make bash-2.05b build with minimal changes.
This is really neat. :^)
Diffstat (limited to 'Kernel/PIC.cpp')
-rw-r--r--Kernel/PIC.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/PIC.cpp b/Kernel/PIC.cpp
index b85a1cd937..7f99996f73 100644
--- a/Kernel/PIC.cpp
+++ b/Kernel/PIC.cpp
@@ -19,9 +19,9 @@ static bool initialized;
namespace PIC {
-void disable(BYTE irq)
+void disable(byte irq)
{
- BYTE imr;
+ byte imr;
if (irq & 8) {
imr = IO::in8(PIC1_CMD);
imr |= 1 << (irq - 8);
@@ -33,9 +33,9 @@ void disable(BYTE irq)
}
}
-void enable(BYTE irq)
+void enable(byte irq)
{
- BYTE imr;
+ byte imr;
if (irq & 8) {
imr = IO::in8(PIC1_CMD);
imr &= ~(1 << (irq - 8));
@@ -47,7 +47,7 @@ void enable(BYTE irq)
}
}
-void eoi(BYTE irq)
+void eoi(byte irq)
{
if (irq & 8)
IO::out8(PIC1_CTL, 0x20);