Changes in kernel/generic/src/ipc/ops/shareout.c [fafb8e5:174156fd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/shareout.c
rfafb8e5 r174156fd 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.