/kernel/trunk/genarch/src/i8042/i8042.c |
---|
324,7 → 324,7 |
{ |
__u8 x; |
trap_virtual_eoi(); |
while ((i8042_status_read() & i8042_BUFFER_FULL_MASK)) { |
x = i8042_data_read(); |
if (x & KEY_RELEASE) |
key_released(x ^ KEY_RELEASE); |
331,6 → 331,8 |
else |
key_pressed(x); |
} |
trap_virtual_eoi(); |
} |
/** Wait until the controller reads its data. */ |
void i8042_wait(void) { |
541,7 → 543,7 |
while(!(ch = active_read_buff_read())) { |
__u8 x; |
while (!((x=i8042_status_read() & i8042_BUFFER_FULL_MASK))) |
while (!(i8042_status_read() & i8042_BUFFER_FULL_MASK)) |
; |
x = i8042_data_read(); |
if (x != IGNORE_CODE) { |