Changeset bd72c3e9 in mainline
- Timestamp:
- 2007-06-17T19:46:39Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ec12fd
- Parents:
- 8b243f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ipc.c
r8b243f2 rbd72c3e9 101 101 } 102 102 103 /** Deallocate a call str acuture.103 /** Deallocate a call structure. 104 104 * 105 105 * @param call Call structure to be freed. … … 437 437 phone = list_get_instance(TASK->answerbox.connected_phones.next, 438 438 phone_t, link); 439 if (! 439 if (!spinlock_trylock(&phone->lock)) { 440 440 spinlock_unlock(&TASK->answerbox.lock); 441 441 DEADLOCK_PROBE(p_phonelck, DEADLOCK_THRESHOLD); … … 545 545 break; 546 546 } 547 printf("active: %d\n", atomic_get(&task->phones[i].active_calls)); 547 printf("active: %d\n", 548 atomic_get(&task->phones[i].active_calls)); 548 549 } 549 550 spinlock_unlock(&task->phones[i].lock); … … 554 555 spinlock_lock(&task->answerbox.lock); 555 556 printf("ABOX - CALLS:\n"); 556 for (tmp=task->answerbox.calls.next; tmp != &task->answerbox.calls;tmp = tmp->next) { 557 for (tmp = task->answerbox.calls.next; tmp != &task->answerbox.calls; 558 tmp = tmp->next) { 557 559 call = list_get_instance(tmp, call_t, link); 558 printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, 559 call->sender->taskid, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 560 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); 560 printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d " 561 "Flags:%x\n", call, call->sender->taskid, 562 IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 563 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), 564 call->flags); 561 565 } 562 566 /* Print answerbox - calls */ … … 566 570 tmp = tmp->next) { 567 571 call = list_get_instance(tmp, call_t, link); 568 printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, 569 call->sender->taskid, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 570 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); 572 printf("Callid: %p Srctask:%llu M:%d A1:%d A2:%d A3:%d " 573 "Flags:%x\n", call, call->sender->taskid, 574 IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 575 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), 576 call->flags); 571 577 } 572 578 /* Print answerbox - calls */ 573 579 printf("ABOX - ANSWERS:\n"); 574 for (tmp=task->answerbox.answers.next; tmp != &task->answerbox.answers; tmp = tmp->next) { 580 for (tmp = task->answerbox.answers.next; tmp != &task->answerbox.answers; 581 tmp = tmp->next) { 575 582 call = list_get_instance(tmp, call_t, link); 576 printf("Callid:%p M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, 577 IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 578 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); 583 printf("Callid:%p M:%d A1:%d A2:%d A3:%d Flags:%x\n", call, 584 IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 585 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), 586 call->flags); 579 587 } 580 588
Note:
See TracChangeset
for help on using the changeset viewer.