Changeset 38c706cc in mainline
- Timestamp:
- 2007-12-04T19:54:53Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6364d3c
- Parents:
- 90c35436
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ipc/ipc.h
r90c35436 r38c706cc 126 126 * the call is accepted and the response is sent back. 127 127 * - the allocated phoneid is passed to userspace 128 * (on the receiving side) as ARG 3of the call.128 * (on the receiving side) as ARG5 of the call. 129 129 * - the caller obtains taskid of the called thread 130 130 */ -
kernel/generic/src/ipc/ipc.c
r90c35436 r38c706cc 569 569 call = list_get_instance(tmp, call_t, link); 570 570 printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d " 571 " Flags:%x\n", call, call->sender->taskid,571 "A4:%d A5:%d Flags:%x\n", call, call->sender->taskid, 572 572 IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 573 573 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), 574 IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data), 574 575 call->flags); 575 576 } … … 581 582 call = list_get_instance(tmp, call_t, link); 582 583 printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d " 583 " Flags:%x\n", call, call->sender->taskid,584 "A4:%d A5:%d Flags:%x\n", call, call->sender->taskid, 584 585 IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 585 586 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), 587 IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data), 586 588 call->flags); 587 589 } … … 591 593 tmp = tmp->next) { 592 594 call = list_get_instance(tmp, call_t, link); 593 printf("Callid:%p M:%d A1:%d A2:%d A3:%d Flags:%x\n", call,594 IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data),595 printf("Callid:%p M:%d A1:%d A2:%d A3:%d A4:%d A5:%d Flags:%x\n", 596 call, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 595 597 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), 598 IPC_GET_ARG4(call->data), IPC_GET_ARG5(call->data), 596 599 call->flags); 597 600 } -
kernel/generic/src/ipc/ipcrsc.c
r90c35436 r38c706cc 73 73 * *** Connect_me_to *** 74 74 * The caller sends IPC_M_CONNECT_ME_TO to an answerbox. The server receives 75 * 'phoneid' of the connecting phone as an ARG 3. If it answers with RETVAL=0,75 * 'phoneid' of the connecting phone as an ARG5. If it answers with RETVAL=0, 76 76 * the phonecall is accepted, otherwise it is refused. 77 77 * -
kernel/generic/src/ipc/sysipc.c
r90c35436 r38c706cc 178 178 179 179 if (IPC_GET_METHOD(*olddata) == IPC_M_CONNECT_TO_ME) { 180 phoneid = IPC_GET_ARG 3(*olddata);180 phoneid = IPC_GET_ARG5(*olddata); 181 181 if (IPC_GET_RETVAL(answer->data)) { 182 182 /* The connection was not accepted */ … … 186 186 phone_connect(phoneid, &answer->sender->answerbox); 187 187 /* Set 'phone hash' as arg3 of response */ 188 IPC_SET_ARG 3(answer->data,188 IPC_SET_ARG5(answer->data, 189 189 (unative_t) &TASK->phones[phoneid]); 190 190 } … … 342 342 return -1; 343 343 } 344 IPC_SET_ARG 3(call->data, phoneid);344 IPC_SET_ARG5(call->data, phoneid); 345 345 } 346 346 return 0; -
uspace/app/tester/devmap/devmap1.c
r90c35436 r38c706cc 91 91 } 92 92 /* 93 * device_phone = (int) IPC_GET_ARG 3(answer);93 * device_phone = (int) IPC_GET_ARG5(answer); 94 94 */ 95 95 printf("Connected to device.\n"); … … 150 150 async_set_client_connection(driver_client_connection); 151 151 152 ipc_connect_to_me(phone, 0, 0, &callback_phonehash);152 ipc_connect_to_me(phone, 0, 0, 0, &callback_phonehash); 153 153 /* 154 154 if (NULL == async_new_connection(callback_phonehash, 0, NULL, -
uspace/app/tester/ipc/register.c
r90c35436 r38c706cc 78 78 for (i = IPC_TEST_START; i < IPC_TEST_START + 10; i++) { 79 79 ipcarg_t phonead; 80 int res = ipc_connect_to_me(PHONE_NS, i, 0, &phonead);80 int res = ipc_connect_to_me(PHONE_NS, i, 0, 0, &phonead); 81 81 if (!res) 82 82 break; -
uspace/lib/libc/generic/ipc.c
r90c35436 r38c706cc 570 570 * @param arg1 Service-defined argument. 571 571 * @param arg2 Service-defined argument. 572 * @param arg3 Service-defined argument. 572 573 * @param phonehash Storage where the library will store an opaque 573 574 * identifier of the phone that will be used for incoming … … 577 578 * @return Zero on success or a negative error code. 578 579 */ 579 int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phonehash) 580 { 581 return ipc_call_sync_2_3(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, 582 NULL, NULL, phonehash); 580 int ipc_connect_to_me(int phoneid, int arg1, int arg2, int arg3, 581 ipcarg_t *phonehash) 582 { 583 return ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, 584 arg3, NULL, NULL, NULL, NULL, phonehash); 583 585 } 584 586 -
uspace/lib/libc/include/ipc/ipc.h
r90c35436 r38c706cc 253 253 ipc_async_callback_t callback, int can_preempt); 254 254 255 extern int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phone); 255 extern int ipc_connect_to_me(int phoneid, int arg1, int arg2, int arg3, 256 ipcarg_t *phone); 256 257 extern int ipc_connect_me_to(int phoneid, int arg1, int arg2, int arg3); 257 258 extern int ipc_hangup(int phoneid); -
uspace/srv/console/console.c
r90c35436 r38c706cc 382 382 async_serialize_start(); 383 383 gcons_notify_connect(consnum); 384 conn->client_phone = IPC_GET_ARG 3(call);384 conn->client_phone = IPC_GET_ARG5(*icall); 385 385 screenbuffer_clear(&conn->screenbuffer); 386 386 … … 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 492 return -1; 493 493 async_new_connection(phonehash, 0, NULL, keyboard_events); … … 551 551 552 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 554 return -1; 555 555 } -
uspace/srv/devmap/devmap.c
r90c35436 r38c706cc 270 270 } 271 271 272 driver->phone = IPC_GET_ARG 3(call);272 driver->phone = IPC_GET_ARG5(call); 273 273 274 274 ipc_answer_0(callid, EOK); … … 736 736 737 737 /* Register device mapper at naming service */ 738 if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, &phonead) != 0)738 if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, 0, &phonead) != 0) 739 739 return -1; 740 740 -
uspace/srv/fb/main.c
r90c35436 r38c706cc 73 73 sysio_init(); 74 74 75 if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, &phonead) != 0)75 if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, 0, &phonead) != 0) 76 76 return -1; 77 77 -
uspace/srv/fs/fat/fat.c
r90c35436 r38c706cc 154 154 */ 155 155 ipcarg_t phonehash; 156 ipc_connect_to_me(vfs_phone, 0, 0, &phonehash);156 ipc_connect_to_me(vfs_phone, 0, 0, 0, &phonehash); 157 157 158 158 /* -
uspace/srv/kbd/generic/kbd.c
r90c35436 r38c706cc 109 109 break; 110 110 } 111 phone2cons = IPC_GET_ARG 3(call);111 phone2cons = IPC_GET_ARG5(call); 112 112 retval = 0; 113 113 break; … … 134 134 async_set_interrupt_received(irq_handler); 135 135 /* Register service at nameserver */ 136 if (ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, &phonead) != 0)136 if (ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, 0, &phonead) != 0) 137 137 return -1; 138 138 -
uspace/srv/ns/ns.c
r90c35436 r38c706cc 140 140 */ 141 141 retval = register_service(IPC_GET_ARG1(call), 142 IPC_GET_ARG 3(call), &call);142 IPC_GET_ARG5(call), &call); 143 143 break; 144 144 case IPC_M_CONNECT_ME_TO: -
uspace/srv/pci/pci.c
r90c35436 r38c706cc 58 58 59 59 printf("%s: registering at naming service.\n", NAME); 60 if (ipc_connect_to_me(PHONE_NS, SERVICE_PCI, 0, &ns_in_phone_hash) != 0) {60 if (ipc_connect_to_me(PHONE_NS, SERVICE_PCI, 0, 0, &ns_in_phone_hash) != 0) { 61 61 printf("Failed to register %s at naming service.\n", NAME); 62 62 return -1; -
uspace/srv/rd/rd.c
r90c35436 r38c706cc 212 212 213 213 /* Register service at nameserver */ 214 if (ipc_connect_to_me(PHONE_NS, SERVICE_RD, 0, &phonead) != 0)214 if (ipc_connect_to_me(PHONE_NS, SERVICE_RD, 0, 0, &phonead) != 0) 215 215 return -1; 216 216 -
uspace/srv/vfs/vfs.c
r90c35436 r38c706cc 158 158 * Register at the naming service. 159 159 */ 160 ipc_connect_to_me(PHONE_NS, SERVICE_VFS, 0, &phonead);160 ipc_connect_to_me(PHONE_NS, SERVICE_VFS, 0, 0, &phonead); 161 161 162 162 /* -
uspace/srv/vfs/vfs_register.c
r90c35436 r38c706cc 253 253 return; 254 254 } 255 fs_info->phone = IPC_GET_ARG 3(call);255 fs_info->phone = IPC_GET_ARG5(call); 256 256 ipc_answer_0(callid, EOK); 257 257
Note:
See TracChangeset
for help on using the changeset viewer.