Changeset cf3aee19 in mainline for kernel/generic/src/ipc
- Timestamp:
- 2015-06-17T23:45:24Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 523b17a
- Parents:
- fc7bf19 (diff), 2654afb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/generic/src/ipc
- Files:
-
- 2 edited
-
ops/conctmeto.c (modified) (3 diffs)
-
sysipc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/conctmeto.c
rfc7bf19 rcf3aee19 44 44 int newphid = phone_alloc(TASK); 45 45 46 /* Remember the phoneid or the error. */ 47 call->priv = newphid; 46 48 if (newphid < 0) 47 49 return ELIMIT; … … 49 51 /* Set arg5 for server */ 50 52 IPC_SET_ARG5(call->data, (sysarg_t) &TASK->phones[newphid]); 51 call->priv = newphid;52 53 53 54 return EOK; … … 73 74 static int answer_process(call_t *answer) 74 75 { 75 if (IPC_GET_RETVAL(answer->data)) 76 phone_dealloc(answer->priv); 77 else 78 IPC_SET_ARG5(answer->data, answer->priv); 76 int newphid = (int) answer->priv; 77 78 if (IPC_GET_RETVAL(answer->data)) { 79 if (newphid >= 0) { 80 /* 81 * The phone was indeed allocated and now needs 82 * to be deallocated. 83 */ 84 phone_dealloc(newphid); 85 } 86 } else { 87 IPC_SET_ARG5(answer->data, newphid); 88 } 79 89 80 90 return EOK; -
kernel/generic/src/ipc/sysipc.c
rfc7bf19 rcf3aee19 388 388 { 389 389 call_t *call = get_call(callid); 390 phone_t *phone;391 bool need_old = answer_need_old(call);392 bool after_forward = false;393 ipc_data_t old;394 int rc;395 396 390 if (!call) 397 391 return ENOENT; 398 392 393 ipc_data_t old; 394 bool need_old = answer_need_old(call); 399 395 if (need_old) 400 396 old = call->data; 397 398 bool after_forward = false; 399 int rc; 400 phone_t *phone; 401 401 402 402 if (phone_get(phoneid, &phone) != EOK) { … … 409 409 goto error; 410 410 } 411 411 412 412 call->flags |= IPC_CALL_FORWARDED; 413 413
Note:
See TracChangeset
for help on using the changeset viewer.
