Rev 4343 | Rev 4347 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4343 | Rev 4345 | ||
---|---|---|---|
Line 507... | Line 507... | ||
507 | int i; |
507 | int i; |
508 | 508 | ||
509 | async_set_client_connection(client_connection); |
509 | async_set_client_connection(client_connection); |
510 | 510 | ||
511 | /* Connect to keyboard driver */ |
511 | /* Connect to keyboard driver */ |
512 | kbd_phone = ipc_connect_me_to(PHONE_NS, SERVICE_KEYBOARD, 0, 0); |
512 | kbd_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_KEYBOARD, 0, 0); |
513 | while (kbd_phone < 0) { |
513 | if (kbd_phone < 0) { |
- | 514 | printf(NAME ": Failed to connect to keyboard service\n"); |
|
514 | usleep(10000); |
515 | return -1; |
515 | kbd_phone = ipc_connect_me_to(PHONE_NS, SERVICE_KEYBOARD, 0, 0); |
- | |
516 | } |
516 | } |
517 | 517 | ||
518 | if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) |
518 | if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) { |
- | 519 | printf(NAME ": Failed to create callback from keyboard service\n"); |
|
519 | return -1; |
520 | return -1; |
- | 521 | } |
|
- | 522 | ||
520 | async_new_connection(phonehash, 0, NULL, keyboard_events); |
523 | async_new_connection(phonehash, 0, NULL, keyboard_events); |
521 | 524 | ||
522 | /* Connect to framebuffer driver */ |
525 | /* Connect to framebuffer driver */ |
523 | fb_info.phone = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0, 0); |
526 | fb_info.phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VIDEO, 0, 0); |
524 | while (fb_info.phone < 0) { |
527 | if (fb_info.phone < 0) { |
- | 528 | printf(NAME ": Failed to connect to video service\n"); |
|
525 | usleep(10000); |
529 | return -1; |
526 | fb_info.phone = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0, 0); |
- | |
527 | } |
530 | } |
528 | 531 | ||
529 | /* Disable kernel output to the console */ |
532 | /* Disable kernel output to the console */ |
530 | __SYSCALL0(SYS_DEBUG_DISABLE_CONSOLE); |
533 | __SYSCALL0(SYS_DEBUG_DISABLE_CONSOLE); |
531 | 534 |