Ignore:
Timestamp:
2019-02-23T17:16:01Z (5 years ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge pull request #157

Turn some function-like macros into functions

File:
1 edited

Legend:

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

    rbc417660 rab87db5  
    5959
    6060        /* Remember the handle */
    61         IPC_SET_ARG5(call->data, (sysarg_t) phandle);
     61        ipc_set_arg5(&call->data, (sysarg_t) phandle);
    6262
    6363        return EOK;
     
    6666static errno_t request_forget(call_t *call)
    6767{
    68         cap_phone_handle_t phandle = (cap_handle_t) IPC_GET_ARG5(call->data);
     68        cap_phone_handle_t phandle = (cap_handle_t) ipc_get_arg5(&call->data);
    6969
    70         if (CAP_HANDLE_RAW(phandle) < 0)
     70        if (cap_handle_raw(phandle) < 0)
    7171                return EOK;
    7272
     
    8888
    8989        /* Set the recipient-assigned label */
    90         pobj->phone->label = IPC_GET_ARG5(answer->data);
     90        pobj->phone->label = ipc_get_arg5(&answer->data);
    9191
    9292        /* Restore phone handle in answer's ARG5 */
    93         IPC_SET_ARG5(answer->data, IPC_GET_ARG5(*olddata));
     93        ipc_set_arg5(&answer->data, ipc_get_arg5(olddata));
    9494
    9595        /* If the user accepted the call, connect */
    96         if (IPC_GET_RETVAL(answer->data) == EOK) {
     96        if (ipc_get_retval(&answer->data) == EOK) {
    9797                /* Hand over reference from pobj to the answerbox */
    9898                (void) ipc_phone_connect(pobj->phone, &TASK->answerbox);
     
    107107static errno_t answer_process(call_t *answer)
    108108{
    109         cap_phone_handle_t phandle = (cap_handle_t) IPC_GET_ARG5(answer->data);
     109        cap_phone_handle_t phandle = (cap_handle_t) ipc_get_arg5(&answer->data);
    110110        /* Move the reference from answer->priv to pobj */
    111111        kobject_t *pobj = (kobject_t *) answer->priv;
    112112        answer->priv = 0;
    113113
    114         if (IPC_GET_RETVAL(answer->data)) {
    115                 if (CAP_HANDLE_RAW(phandle) >= 0) {
     114        if (ipc_get_retval(&answer->data)) {
     115                if (cap_handle_raw(phandle) >= 0) {
    116116                        /*
    117117                         * Cleanup the unpublished capability and drop
Note: See TracChangeset for help on using the changeset viewer.