Subversion Repositories HelenOS-historic

Compare Revisions

Regard whitespace Rev 1753 → Rev 1752

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