Rev 2635 | Rev 2677 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2635 | Rev 2637 | ||
---|---|---|---|
Line 379... | Line 379... | ||
379 | conn = &connections[consnum]; |
379 | conn = &connections[consnum]; |
380 | conn->used = 1; |
380 | conn->used = 1; |
381 | 381 | ||
382 | async_serialize_start(); |
382 | async_serialize_start(); |
383 | gcons_notify_connect(consnum); |
383 | gcons_notify_connect(consnum); |
384 | conn->client_phone = IPC_GET_ARG3(call); |
384 | conn->client_phone = IPC_GET_ARG5(*icall); |
385 | screenbuffer_clear(&conn->screenbuffer); |
385 | screenbuffer_clear(&conn->screenbuffer); |
386 | 386 | ||
387 | /* Accept the connection */ |
387 | /* Accept the connection */ |
388 | ipc_answer_0(iid, EOK); |
388 | ipc_answer_0(iid, EOK); |
389 | 389 | ||
Line 486... | Line 486... | ||
486 | while (kbd_phone < 0) { |
486 | while (kbd_phone < 0) { |
487 | usleep(10000); |
487 | usleep(10000); |
488 | kbd_phone = ipc_connect_me_to(PHONE_NS, SERVICE_KEYBOARD, 0, 0); |
488 | kbd_phone = ipc_connect_me_to(PHONE_NS, SERVICE_KEYBOARD, 0, 0); |
489 | } |
489 | } |
490 | 490 | ||
491 | if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, &phonehash) != 0) |
491 | if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) |
492 | return -1; |
492 | return -1; |
493 | async_new_connection(phonehash, 0, NULL, keyboard_events); |
493 | async_new_connection(phonehash, 0, NULL, keyboard_events); |
494 | 494 | ||
495 | /* Connect to framebuffer driver */ |
495 | /* Connect to framebuffer driver */ |
496 | 496 | ||
Line 548... | Line 548... | ||
548 | curs_goto(0, 0); |
548 | curs_goto(0, 0); |
549 | curs_visibility( |
549 | curs_visibility( |
550 | connections[active_console].screenbuffer.is_cursor_visible); |
550 | connections[active_console].screenbuffer.is_cursor_visible); |
551 | 551 | ||
552 | /* Register at NS */ |
552 | /* Register at NS */ |
553 | if (ipc_connect_to_me(PHONE_NS, SERVICE_CONSOLE, 0, &phonehash) != 0) { |
553 | if (ipc_connect_to_me(PHONE_NS, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) { |
554 | return -1; |
554 | return -1; |
555 | } |
555 | } |
556 | 556 | ||
557 | async_manager(); |
557 | async_manager(); |
558 | 558 |