diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-08-20 15:55:03 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-08-20 15:55:03 +0200 |
| commit | dc164927e71d760a41494ab1edf8e3deeda401db (patch) | |
| tree | 65253b4a5e443c599341d5972b58449388a4b2b1 /kernel/keyboard.c | |
| parent | 46063e75f3f81dfb532fa5772c88e9027a0faebd (diff) | |
started implementing floppy driver etc.
Diffstat (limited to 'kernel/keyboard.c')
| -rw-r--r-- | kernel/keyboard.c | 6 |
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(); |
