Changes in kernel/generic/src/ipc/ops/stchngath.c [174156fd:fafb8e5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/stchngath.c
r174156fd rfafb8e5 46 46 47 47 kobject_t *sender_obj = kobject_get(TASK, 48 (cap_handle_t) IPC_GET_ARG5(call->data), KOBJECT_TYPE_PHONE);48 (cap_handle_t) ipc_get_arg5(&call->data), KOBJECT_TYPE_PHONE); 49 49 if (!sender_obj) 50 50 return ENOENT; … … 62 62 63 63 /* Remember the third party task hash. */ 64 IPC_SET_ARG5(call->data, (sysarg_t) other_task_s);64 ipc_set_arg5(&call->data, (sysarg_t) other_task_s); 65 65 66 66 kobject_put(sender_obj); … … 72 72 errno_t rc = EOK; 73 73 74 if (! IPC_GET_RETVAL(answer->data)) {74 if (!ipc_get_retval(&answer->data)) { 75 75 /* The recipient authorized the change of state. */ 76 76 task_t *other_task_s; … … 78 78 79 79 kobject_t *recipient_obj = kobject_get(TASK, 80 (cap_handle_t) IPC_GET_ARG1(answer->data),80 (cap_handle_t) ipc_get_arg1(&answer->data), 81 81 KOBJECT_TYPE_PHONE); 82 82 if (!recipient_obj) { 83 IPC_SET_RETVAL(answer->data, ENOENT);83 ipc_set_retval(&answer->data, ENOENT); 84 84 return ENOENT; 85 85 } … … 88 88 if (recipient_obj->phone->state != IPC_PHONE_CONNECTED) { 89 89 mutex_unlock(&recipient_obj->phone->lock); 90 IPC_SET_RETVAL(answer->data, EINVAL);90 ipc_set_retval(&answer->data, EINVAL); 91 91 kobject_put(recipient_obj); 92 92 return EINVAL; … … 94 94 95 95 other_task_r = recipient_obj->phone->callee->task; 96 other_task_s = (task_t *) IPC_GET_ARG5(*olddata);96 other_task_s = (task_t *) ipc_get_arg5(olddata); 97 97 98 98 /* … … 101 101 */ 102 102 if (other_task_r != other_task_s) { 103 IPC_SET_RETVAL(answer->data, EINVAL);103 ipc_set_retval(&answer->data, EINVAL); 104 104 rc = EINVAL; 105 105 } else { 106 106 rc = event_task_notify_5(other_task_r, 107 107 EVENT_TASK_STATE_CHANGE, false, 108 IPC_GET_ARG1(*olddata),109 IPC_GET_ARG2(*olddata),110 IPC_GET_ARG3(*olddata),108 ipc_get_arg1(olddata), 109 ipc_get_arg2(olddata), 110 ipc_get_arg3(olddata), 111 111 LOWER32(olddata->task_id), 112 112 UPPER32(olddata->task_id)); 113 IPC_SET_RETVAL(answer->data, rc);113 ipc_set_retval(&answer->data, rc); 114 114 } 115 115
Note:
See TracChangeset
for help on using the changeset viewer.