summaryrefslogtreecommitdiff
path: root/src/kernel/idt.c
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-03 22:43:17 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-03 22:43:17 -0500
commit81df4702c424f91cca5570ab2554d1d4cbae534d (patch)
treeaa8704b2fdf7a4bd79d85f480dc9fd8f8db02547 /src/kernel/idt.c
parent43693f88c79467b741b3f899799082e791656d1b (diff)
downloadportland-os-81df4702c424f91cca5570ab2554d1d4cbae534d.tar.gz
64kiB kernel area, ps/2 mouse support, signed decimals in knob format
Diffstat (limited to 'src/kernel/idt.c')
-rw-r--r--src/kernel/idt.c6
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"