Changeset ab87db5 in mainline for kernel/generic/src/ipc/ops/shareout.c
- Timestamp:
- 2019-02-23T17:16:01Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8c193d83, ca0e838
- Parents:
- bc417660 (diff), 95a47b0 (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. - git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-23 17:16:01)
- git-committer:
- GitHub <noreply@…> (2019-02-23 17:16:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/shareout.c
rbc417660 rab87db5 44 44 static errno_t request_preprocess(call_t *call, phone_t *phone) 45 45 { 46 size_t size = as_area_get_size( IPC_GET_ARG1(call->data));46 size_t size = as_area_get_size(ipc_get_arg1(&call->data)); 47 47 48 48 if (!size) 49 49 return EPERM; 50 IPC_SET_ARG2(call->data, size);50 ipc_set_arg2(&call->data, size); 51 51 52 52 return EOK; … … 57 57 errno_t rc = EOK; 58 58 59 if (! IPC_GET_RETVAL(answer->data)) {59 if (!ipc_get_retval(&answer->data)) { 60 60 /* Accepted, handle as_area receipt */ 61 61 … … 65 65 66 66 uintptr_t dst_base = (uintptr_t) -1; 67 rc = as_area_share(as, IPC_GET_ARG1(*olddata),68 IPC_GET_ARG2(*olddata), AS, IPC_GET_ARG3(*olddata),69 &dst_base, IPC_GET_ARG1(answer->data));67 rc = as_area_share(as, ipc_get_arg1(olddata), 68 ipc_get_arg2(olddata), AS, ipc_get_arg3(olddata), 69 &dst_base, ipc_get_arg1(&answer->data)); 70 70 71 71 if (rc == EOK) { 72 rc = copy_to_uspace((void *) IPC_GET_ARG2(answer->data),72 rc = copy_to_uspace((void *) ipc_get_arg2(&answer->data), 73 73 &dst_base, sizeof(dst_base)); 74 74 } 75 75 76 IPC_SET_RETVAL(answer->data, rc);76 ipc_set_retval(&answer->data, rc); 77 77 } 78 78
Note:
See TracChangeset
for help on using the changeset viewer.