Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1753 → Rev 1752

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