From 81df4702c424f91cca5570ab2554d1d4cbae534d Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Wed, 3 Mar 2021 22:43:17 -0500 Subject: 64kiB kernel area, ps/2 mouse support, signed decimals in knob format --- src/kernel/idt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/kernel/idt.c') diff --git a/src/kernel/idt.c b/src/kernel/idt.c index 1a78da0..f07ef1d 100644 --- a/src/kernel/idt.c +++ b/src/kernel/idt.c @@ -219,6 +219,7 @@ extern isr_t quit_isr; extern isr_t yield_isr; extern isr_t kbd_isr; +extern isr_t mouse_isr; extern isr_t udf_isr; extern isr_t dfa_isr; @@ -325,6 +326,7 @@ void init_idt() { register_int(0x39, &yield_isr, 3); register_int(0x21, &kbd_isr, 0); + register_int(0x2c, &mouse_isr, 0); register_int(0x08, &udf_isr, 0); register_int(0x08, &dfa_isr, 0); @@ -346,8 +348,8 @@ void init_idt() { outb(PIC_MDATA, 0x01); outb(PIC_SDATA, 0x01); - outb(PIC_MDATA, 0xfd); - outb(PIC_SDATA, 0xff); + outb(PIC_MDATA, 0xf9); + outb(PIC_SDATA, 0xef); asm volatile ( "lidt %0" -- cgit v1.2.3