summaryrefslogtreecommitdiff
path: root/kernel/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/keyboard.c')
-rw-r--r--kernel/keyboard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/keyboard.c b/kernel/keyboard.c
index cdc557e..9b81682 100644
--- a/kernel/keyboard.c
+++ b/kernel/keyboard.c
@@ -124,13 +124,15 @@ void keyboard_handle(uint8_t in)
}
-void int_kb_handler()
+__attribute__((interrupt( irq ))) void int_kb_handler()
{
- static uint8_t kb_in;
__asm__("pusha");
__asm__("in $0x60, %al");
+
+ static uint8_t kb_in;
+
__asm__("mov %%al, %0"::"m" (kb_in));
// scr_nextline();