Changeset eb13ef8 in mainline for kernel/generic/src/ipc/ops/shareout.c
- Timestamp:
- 2019-02-06T13:25:12Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fafb8e5
- Parents:
- bb97118
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-02 14:04:02)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-06 13:25:12)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/shareout.c
rbb97118 reb13ef8 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.