feat(pic): mask all PIC except keyboard

This commit is contained in:
aliamelo committed 2021-07-16 03:18:43 +02:00
1 parent f636fcbadf
commit a98c35a226
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -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");
} }
+1 -1
View File
@@ -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]);
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.