68,10 → 68,7 |
kbd_arch_process(&keybuffer, call); |
|
if (cons_connected && phone2cons != -1) { |
/* |
* recode to ASCII - one interrupt can produce more than one |
* code so result is stored in fifo |
*/ |
/* recode to ASCII - one interrupt can produce more than one code so result is stored in fifo */ |
while (!keybuffer_empty(&keybuffer)) { |
if (!keybuffer_pop(&keybuffer, (int *)&chr)) |
break; |
88,11 → 85,11 |
int retval; |
|
if (cons_connected) { |
ipc_answer_0(iid, ELIMIT); |
ipc_answer_fast(iid, ELIMIT, 0, 0); |
return; |
} |
cons_connected = 1; |
ipc_answer_0(iid, EOK); |
ipc_answer_fast(iid, 0, 0, 0); |
|
while (1) { |
callid = async_get_call(&call); |
101,7 → 98,7 |
cons_connected = 0; |
ipc_hangup(phone2cons); |
phone2cons = -1; |
ipc_answer_0(callid, EOK); |
ipc_answer_fast(callid, 0,0,0); |
return; |
case IPC_M_CONNECT_TO_ME: |
if (phone2cons != -1) { |
114,7 → 111,7 |
default: |
retval = EINVAL; |
} |
ipc_answer_0(callid, retval); |
ipc_answer_fast(callid, retval, 0, 0); |
} |
} |
|