Changeset 1b186ed in mainline
- Timestamp:
- 2012-08-21T21:14:04Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 13dbaa8c
- Parents:
- 32e4643
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/ipc/ipc.h
r32e4643 r1b186ed 57 57 #define IPC_CALL_FORWARDED (1 << 2) 58 58 59 /** Identify connect_me_to answer */60 #define IPC_CALL_CONN_ME_TO (1 << 3)61 62 59 /** Interrupt notification */ 63 #define IPC_CALL_NOTIF (1 << 4)60 #define IPC_CALL_NOTIF (1 << 3) 64 61 65 62 -
kernel/generic/src/ipc/ops/conctmeto.c
r32e4643 r1b186ed 49 49 /* Set arg5 for server */ 50 50 IPC_SET_ARG5(call->data, (sysarg_t) &TASK->phones[newphid]); 51 call->flags |= IPC_CALL_CONN_ME_TO;52 51 call->priv = newphid; 53 52 … … 66 65 } 67 66 67 static int answer_process(call_t *answer) 68 { 69 if (IPC_GET_RETVAL(answer->data)) 70 phone_dealloc(answer->priv); 71 else 72 IPC_SET_ARG5(answer->data, answer->priv); 73 74 return EOK; 75 } 68 76 69 77 sysipc_ops_t ipc_m_connect_me_to_ops = { … … 71 79 .request_process = null_request_process, 72 80 .answer_preprocess = answer_preprocess, 73 .answer_process = null_answer_process,81 .answer_process = answer_process, 74 82 }; 75 83 -
kernel/generic/src/ipc/sysipc.c
r32e4643 r1b186ed 242 242 (call->flags & IPC_CALL_FORWARDED)) 243 243 IPC_SET_RETVAL(call->data, EFORWARD); 244 245 if (call->flags & IPC_CALL_CONN_ME_TO) {246 if (IPC_GET_RETVAL(call->data))247 phone_dealloc(call->priv);248 else249 IPC_SET_ARG5(call->data, call->priv);250 }251 244 252 245 if (call->buffer) {
Note:
See TracChangeset
for help on using the changeset viewer.