diff options
author | Anton Kling <anton@kling.gg> | 2024-02-22 17:28:08 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-02-22 17:28:55 +0100 |
commit | a18da25e7355979d0f26cfd39dc0032172e8b135 (patch) | |
tree | 2af66bedd0dff4bbccffc8d82cd06836d7f68e0d /kernel/drivers/mouse.c | |
parent | 9b475d3db3275d4c34f02161ae70ced5595a0fdb (diff) |
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.
Diffstat (limited to 'kernel/drivers/mouse.c')
-rw-r--r-- | kernel/drivers/mouse.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |