Correct definition of masking IRQ
This commit is contained in:
parent
97a9955b21
commit
37d772d1c7
4
pic.c
4
pic.c
@ -42,7 +42,7 @@ void initPic(void)
|
|||||||
outb(PIC_SLAVE_DATA, 0xFF);
|
outb(PIC_SLAVE_DATA, 0xFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
void enableIrq(int irq)
|
void disableIrq(int irq)
|
||||||
{
|
{
|
||||||
if (irq < 8) {
|
if (irq < 8) {
|
||||||
uint8_t status = inb(PIC_MASTER_DATA);
|
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) {
|
if (irq < 8) {
|
||||||
uint8_t status = inb(PIC_MASTER_DATA);
|
uint8_t status = inb(PIC_MASTER_DATA);
|
||||||
|
Loading…
Reference in New Issue
Block a user