feat(pic): mask all PIC except keyboard
This commit is contained in:
1 parent
f636fcbadf
commit
a98c35a226
2 files changed
+6
-2
No files matched your search
@@ -20,5 +20,9 @@ void remap_pic(void)
|
||||
outb(SLAVE_PORT_B, ICW4_INIT);
|
||||
|
||||
// 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");
|
||||
}
|
||||
+1
-1
@@ -30,7 +30,7 @@ int write(const char *buf, size_t count)
|
||||
{
|
||||
u8 line_status = inb(COM1 + 5);
|
||||
if (!(line_status & EMPTY_TRANSMITTER))
|
||||
break;
|
||||
continue;
|
||||
outb(COM1, buf[sent]);
|
||||
}
|
||||
|
||||
|
||||