feat(pic): mask all PIC except keyboard
This commit is contained in:
parent
f636fcbadf
commit
a98c35a226
6
k/pic.c
6
k/pic.c
@ -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");
|
||||
}
|
||||
|
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user