Changes in kernel/generic/src/ipc/ops/conctmeto.c [6769005:fafb8e5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/conctmeto.c
r6769005 rfafb8e5 59 59 60 60 /* Remember the handle */ 61 IPC_SET_ARG5(call->data, (sysarg_t) phandle);61 ipc_set_arg5(&call->data, (sysarg_t) phandle); 62 62 63 63 return EOK; … … 66 66 static errno_t request_forget(call_t *call) 67 67 { 68 cap_phone_handle_t phandle = (cap_handle_t) IPC_GET_ARG5(call->data);68 cap_phone_handle_t phandle = (cap_handle_t) ipc_get_arg5(&call->data); 69 69 70 if ( CAP_HANDLE_RAW(phandle) < 0)70 if (cap_handle_raw(phandle) < 0) 71 71 return EOK; 72 72 … … 88 88 89 89 /* Set the recipient-assigned label */ 90 pobj->phone->label = IPC_GET_ARG5(answer->data);90 pobj->phone->label = ipc_get_arg5(&answer->data); 91 91 92 92 /* Restore phone handle in answer's ARG5 */ 93 IPC_SET_ARG5(answer->data, IPC_GET_ARG5(*olddata));93 ipc_set_arg5(&answer->data, ipc_get_arg5(olddata)); 94 94 95 95 /* If the user accepted the call, connect */ 96 if ( IPC_GET_RETVAL(answer->data) == EOK) {96 if (ipc_get_retval(&answer->data) == EOK) { 97 97 /* Hand over reference from pobj to the answerbox */ 98 98 (void) ipc_phone_connect(pobj->phone, &TASK->answerbox); … … 107 107 static errno_t answer_process(call_t *answer) 108 108 { 109 cap_phone_handle_t phandle = (cap_handle_t) IPC_GET_ARG5(answer->data);109 cap_phone_handle_t phandle = (cap_handle_t) ipc_get_arg5(&answer->data); 110 110 /* Move the reference from answer->priv to pobj */ 111 111 kobject_t *pobj = (kobject_t *) answer->priv; 112 112 answer->priv = 0; 113 113 114 if ( IPC_GET_RETVAL(answer->data)) {115 if ( CAP_HANDLE_RAW(phandle) >= 0) {114 if (ipc_get_retval(&answer->data)) { 115 if (cap_handle_raw(phandle) >= 0) { 116 116 /* 117 117 * Cleanup the unpublished capability and drop
Note:
See TracChangeset
for help on using the changeset viewer.