aboutsummaryrefslogtreecommitdiff
path: root/src/core/int.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/int.S')
-rw-r--r--src/core/int.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/int.S b/src/core/int.S
index d5ad643..1c8d7bb 100644
--- a/src/core/int.S
+++ b/src/core/int.S
@@ -1,4 +1,5 @@
.extern printk
+.extern ack
.macro call_printk msg
mov \msg, %rdi
@@ -26,8 +27,17 @@ INT_14:
jmp INT_14_INFINITE
iretq
+.globl INT_KBD
+INT_KBD:
+ call_printk $MSG_INT_KBD
+ call ack
+ iretq
MSG_INT_0:
.asciz "Zero Division error!"
MSG_INT_14:
.asciz "Page fault!"
+MSG_INT_KBD:
+.asciz "Key press!"
+MSG:
+.asciz "Called :)\n" \ No newline at end of file