1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00

Make bash-2.05b build with minimal changes.

This is really neat. :^)
This commit is contained in:
Andreas Kling 2018-11-17 00:11:08 +01:00
parent 2cf477a151
commit 9d05f6b7a7
35 changed files with 326 additions and 176 deletions

View file

@ -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);