diff options
author | Marvin Borner | 2021-06-02 22:27:59 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-02 22:27:59 +0200 |
commit | 98e15f73f090c32b5197ecec0845c408d4a54608 (patch) | |
tree | 31490731c74b45e2450de56c0c4ea4abd3f3b54d /kernel/drivers/ps2/mouse.c | |
parent | 91ba8d02037cc27c7b44f1bfd492c42ccd0af042 (diff) |
Huge scheduler rewrite and other things
Diffstat (limited to 'kernel/drivers/ps2/mouse.c')
-rw-r--r-- | kernel/drivers/ps2/mouse.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/drivers/ps2/mouse.c b/kernel/drivers/ps2/mouse.c index 680183d..ab20c90 100644 --- a/kernel/drivers/ps2/mouse.c +++ b/kernel/drivers/ps2/mouse.c @@ -2,7 +2,7 @@ #include <assert.h> #include <drivers/cpu.h> -#include <drivers/interrupts.h> +#include <drivers/int.h> #include <drivers/ps2.h> #include <errno.h> #include <io.h> @@ -36,9 +36,8 @@ static void mouse_finish(void) io_unblock(IO_MOUSE); } -static void mouse_handler(struct regs *r) +static void mouse_handler(void) { - UNUSED(r); switch (mouse_cycle) { case 0: mouse_byte[0] = ps2_read_data(); @@ -139,7 +138,7 @@ CLEAR void ps2_mouse_install(u8 device) { ps2_mouse_enable(device); - irq_install_handler(12, mouse_handler); + int_event_handler_add(12, mouse_handler); queue = stack_new(); struct io_dev *dev = zalloc(sizeof(*dev)); |