feat(pic): mask all PIC except keyboard

This commit is contained in:
Malo Lecomte 2021-07-16 03:18:43 +02:00
parent f636fcbadf
commit a98c35a226
2 changed files with 6 additions and 2 deletions

@ -20,5 +20,9 @@ void remap_pic(void)
outb(SLAVE_PORT_B, ICW4_INIT); outb(SLAVE_PORT_B, ICW4_INIT);
// OCW1 // OCW1
outb(MASTER_PORT_B, PIC_PIN_0); // masking PIT for now outb(MASTER_PORT_B, PIC_PIN_0 | PIC_PIN_2 |
PIC_PIN_3 | PIC_PIN_4 | PIC_PIN_5 |
PIC_PIN_6 | PIC_PIN_7); // masking PIT for now
asm volatile("sti");
} }

@ -30,7 +30,7 @@ int write(const char *buf, size_t count)
{ {
u8 line_status = inb(COM1 + 5); u8 line_status = inb(COM1 + 5);
if (!(line_status & EMPTY_TRANSMITTER)) if (!(line_status & EMPTY_TRANSMITTER))
break; continue;
outb(COM1, buf[sent]); outb(COM1, buf[sent]);
} }