Ignore:
Timestamp:
2019-02-06T13:25:12Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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)
Message:

Change IPC_GET_* and IPC_SET_* to accept pointer instead of lvalue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ops/shareout.c

    rbb97118 reb13ef8  
    4444static errno_t request_preprocess(call_t *call, phone_t *phone)
    4545{
    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));
    4747
    4848        if (!size)
    4949                return EPERM;
    50         IPC_SET_ARG2(call->data, size);
     50        IPC_SET_ARG2(&call->data, size);
    5151
    5252        return EOK;
     
    5757        errno_t rc = EOK;
    5858
    59         if (!IPC_GET_RETVAL(answer->data)) {
     59        if (!IPC_GET_RETVAL(&answer->data)) {
    6060                /* Accepted, handle as_area receipt */
    6161
     
    6565
    6666                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));
    7070
    7171                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),
    7373                            &dst_base, sizeof(dst_base));
    7474                }
    7575
    76                 IPC_SET_RETVAL(answer->data, rc);
     76                IPC_SET_RETVAL(&answer->data, rc);
    7777        }
    7878
Note: See TracChangeset for help on using the changeset viewer.