diff options
Diffstat (limited to 'src/kernel/idt.c')
-rw-r--r-- | src/kernel/idt.c | 6 |
1 files changed, 4 insertions, 2 deletions
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" |