Revision 42
changed counter
lab3.c | ||
---|---|---|
34 | 34 |
extern uint8_t scancode[2]; |
35 | 35 |
extern int two_byte_scancode; |
36 | 36 |
extern int got_error; |
37 |
extern uint32_t sys_inb_counter; |
|
37 | 38 |
|
38 | 39 |
int(kbd_test_scan)() { |
39 | 40 |
|
... | ... | |
85 | 86 |
|
86 | 87 |
if (unsubscribe_kbc_interrupt(&kbc_id)) return 1; |
87 | 88 |
|
88 |
if (kbd_print_no_sysinb(sys_inb_counter(GET))) return 1;
|
|
89 |
if (kbd_print_no_sysinb(sys_inb_counter)) return 1; |
|
89 | 90 |
|
90 | 91 |
return 0; |
91 | 92 |
} |
... | ... | |
102 | 103 |
cmd = (cmd | INT_KBD) & (~DIS_KBD); |
103 | 104 |
if(kbc_change_cmd(cmd)) return 1; |
104 | 105 |
|
106 |
if (kbd_print_no_sysinb(sys_inb_counter)) return 1; |
|
107 |
|
|
105 | 108 |
return 0; |
106 | 109 |
} |
107 | 110 |
|
Also available in: Unified diff