aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/ps2/mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/ps2/mouse.c')
-rw-r--r--kernel/drivers/ps2/mouse.c7
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));