Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1752 → Rev 1753

/kernel/trunk/genarch/src/i8042/i8042.c
324,12 → 324,14
{
__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. */
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) {