Rev 2539 | Rev 2618 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2539 | Rev 2566 | ||
---|---|---|---|
Line 136... | Line 136... | ||
136 | async_msg_3(fb_info.phone, FB_PUTCHAR, c, row, col); |
136 | async_msg_3(fb_info.phone, FB_PUTCHAR, c, row, col); |
137 | } |
137 | } |
138 | 138 | ||
139 | /** Check key and process special keys. |
139 | /** Check key and process special keys. |
140 | * |
140 | * |
- | 141 | * |
|
141 | * */ |
142 | */ |
142 | static void write_char(int console, char key) |
143 | static void write_char(int console, char key) |
143 | { |
144 | { |
144 | screenbuffer_t *scr = &(connections[console].screenbuffer); |
145 | screenbuffer_t *scr = &(connections[console].screenbuffer); |
145 | 146 | ||
146 | switch (key) { |
147 | switch (key) { |
Line 374... | Line 375... | ||
374 | int consnum; |
375 | int consnum; |
375 | ipcarg_t arg1, arg2; |
376 | ipcarg_t arg1, arg2; |
376 | connection_t *conn; |
377 | connection_t *conn; |
377 | 378 | ||
378 | if ((consnum = find_free_connection()) == -1) { |
379 | if ((consnum = find_free_connection()) == -1) { |
379 | ipc_answer_fast(iid,ELIMIT,0,0); |
380 | ipc_answer_fast(iid, ELIMIT, 0, 0); |
380 | return; |
381 | return; |
381 | } |
382 | } |
382 | conn = &connections[consnum]; |
383 | conn = &connections[consnum]; |
383 | conn->used = 1; |
384 | conn->used = 1; |
384 | 385 | ||
Line 393... | Line 394... | ||
393 | while (1) { |
394 | while (1) { |
394 | async_serialize_end(); |
395 | async_serialize_end(); |
395 | callid = async_get_call(&call); |
396 | callid = async_get_call(&call); |
396 | async_serialize_start(); |
397 | async_serialize_start(); |
397 | 398 | ||
- | 399 | arg1 = 0; |
|
398 | arg1 = arg2 = 0; |
400 | arg2 = 0; |
399 | switch (IPC_GET_METHOD(call)) { |
401 | switch (IPC_GET_METHOD(call)) { |
400 | case IPC_M_PHONE_HUNGUP: |
402 | case IPC_M_PHONE_HUNGUP: |
401 | gcons_notify_disconnect(consnum); |
403 | gcons_notify_disconnect(consnum); |
402 | 404 | ||
403 | /* Answer all pending requests */ |
405 | /* Answer all pending requests */ |