mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Added keyboard support (hell yeah)
This commit is contained in:
+5
-5
@@ -14,16 +14,16 @@ void uninstallIrqHandler(uint32_t irq) {
|
||||
|
||||
// I have no clue how or what this does, but it makes everything work
|
||||
void irqRemap(void) {
|
||||
outb(0xA0, 0x11);
|
||||
outb(0xa0, 0x11);
|
||||
outb(0x20, 0x11);
|
||||
outb(0x21, 0x20);
|
||||
outb(0xA1, 0x28);
|
||||
outb(0xa1, 0x28);
|
||||
outb(0x21, 0x04);
|
||||
outb(0xA1, 0x02);
|
||||
outb(0xa1, 0x02);
|
||||
outb(0x21, 0x01);
|
||||
outb(0xA1, 0x01);
|
||||
outb(0xa1, 0x01);
|
||||
outb(0x21, 0x0);
|
||||
outb(0xA1, 0x0);
|
||||
outb(0xa1, 0x0);
|
||||
}
|
||||
|
||||
void irqHandler(struct regs* r) {
|
||||
|
||||
Reference in New Issue
Block a user