From a18da25e7355979d0f26cfd39dc0032172e8b135 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 22 Feb 2024 17:28:08 +0100 Subject: Kernel: Fix undefined behavior and cleanup functions. The int_syscall caused crashes for higher level of optimizations. To fix this I rewrote the function in assembly as I deemed it to be simpler. --- kernel/drivers/mouse.c | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel/drivers/mouse.c') diff --git a/kernel/drivers/mouse.c b/kernel/drivers/mouse.c index ec7ce8c..af4f22e 100644 --- a/kernel/drivers/mouse.c +++ b/kernel/drivers/mouse.c @@ -142,4 +142,5 @@ void install_mouse(void) { install_handler(int_mouse, INT_32_INTERRUPT_GATE(0x3), 12 + 0x20); install_handler(what, INT_32_INTERRUPT_GATE(0x3), 0xe + 0x20); + install_handler(what, INT_32_INTERRUPT_GATE(0x3), 0xf + 0x20); } -- cgit v1.2.3