diff options
Diffstat (limited to 'asm/int_mouse_handler.asm')
| -rw-r--r-- | asm/int_mouse_handler.asm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/asm/int_mouse_handler.asm b/asm/int_mouse_handler.asm new file mode 100644 index 0000000..4e4882b --- /dev/null +++ b/asm/int_mouse_handler.asm @@ -0,0 +1,19 @@ +global int_mouse_handler +[extern mouse_handler] + +[bits 32] +int_mouse_handler: + + cli + pusha + + call mouse_handler + + mov al, 0x20 ;Port number AND command number to Acknowledge IRQ + out 0xa0, al ; came from slave + out 0x20, al ;Acknowledge IRQ, so we keep getting interrupts + + popa + sti + + iret ;Interrupt-Return |
