Revision 67
not working
lab3.c | ||
---|---|---|
56 | 56 |
case HARDWARE: /* hardware interrupt notification */ |
57 | 57 |
if (msg.m_notify.interrupts & kbc_irq) { /* subscribed interrupt */ |
58 | 58 |
kbc_ih(); |
59 |
if(done) |
|
60 |
kbd_print_scancode(!(scancode[sz-1] & BREAK_CODE_BIT), sz, scancode);
|
|
59 |
if(keyboard_done)
|
|
60 |
kbd_print_scancode(!(scancode[scancode_sz-1] & BREAK_CODE_BIT), scancode_sz, scancode);
|
|
61 | 61 |
if (scancode[0] == ESC_BREAK_CODE) good = 0; |
62 | 62 |
} |
63 | 63 |
break; |
... | ... | |
126 | 126 |
} |
127 | 127 |
if (msg.m_notify.interrupts & kbc_irq) { /// subscribed interrupt |
128 | 128 |
kbc_ih(); |
129 |
if(done) { |
|
130 |
kbd_print_scancode(!(scancode[sz-1] & BREAK_CODE_BIT), sz, scancode);
|
|
129 |
if(keyboard_done) {
|
|
130 |
kbd_print_scancode(!(scancode[scancode_sz-1] & BREAK_CODE_BIT), scancode_sz, scancode);
|
|
131 | 131 |
time = 0; |
132 | 132 |
no_interrupts = 0; |
133 | 133 |
if (scancode[0] == ESC_BREAK_CODE) good = 0; |
Also available in: Unified diff