Changeset 4904de8 in mainline
- Timestamp:
- 2009-03-02T17:32:40Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 430afff
- Parents:
- 8026731
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/console/console.c
r8026731 r4904de8 510 510 511 511 /* Connect to keyboard driver */ 512 kbd_phone = ipc_connect_me_to(PHONE_NS, SERVICE_KEYBOARD, 0, 0); 513 while (kbd_phone < 0) { 514 usleep(10000); 515 kbd_phone = ipc_connect_me_to(PHONE_NS, SERVICE_KEYBOARD, 0, 0); 516 } 517 518 if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) 512 kbd_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_KEYBOARD, 0, 0); 513 if (kbd_phone < 0) { 514 printf(NAME ": Failed to connect to keyboard service\n"); 519 515 return -1; 516 } 517 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"); 520 return -1; 521 } 522 520 523 async_new_connection(phonehash, 0, NULL, keyboard_events); 521 524 522 525 /* Connect to framebuffer driver */ 523 fb_info.phone = ipc_connect_me_to (PHONE_NS, SERVICE_VIDEO, 0, 0);524 while(fb_info.phone < 0) {525 usleep(10000);526 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); 527 if (fb_info.phone < 0) { 528 printf(NAME ": Failed to connect to video service\n"); 529 return -1; 527 530 } 528 531
Note:
See TracChangeset
for help on using the changeset viewer.