Correct definition of masking IRQ

This commit is contained in:
Mathieu Maret 2018-07-18 01:32:17 +02:00
parent 97a9955b21
commit 37d772d1c7
1 changed files with 2 additions and 2 deletions

4
pic.c
View File

@ -42,7 +42,7 @@ void initPic(void)
outb(PIC_SLAVE_DATA, 0xFF);
}
void enableIrq(int irq)
void disableIrq(int irq)
{
if (irq < 8) {
uint8_t status = inb(PIC_MASTER_DATA);
@ -53,7 +53,7 @@ void enableIrq(int irq)
}
}
void disableIrq(int irq)
void enableIrq(int irq)
{
if (irq < 8) {
uint8_t status = inb(PIC_MASTER_DATA);