Changeset b74959bd in mainline for uspace/srv/pci/pci.c


Ignore:
Timestamp:
2007-11-20T21:33:32Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8498915
Parents:
3209923
Message:

Modify ipc_answer_*() to make use of all six syscall arguments. The recommended
means of answering calls is via the ipc_answer_m() macros (where m denotes the
number of return arguments) that automatically decide between the fast register
version or the slow universal version of ipc_answer().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/pci/pci.c

    r3209923 rb74959bd  
    6767                ipc_call_t call;
    6868                ipc_callid_t callid;
     69                ipcarg_t retval = ENOTSUP;
    6970
    7071                callid = ipc_wait_for_call(&call);
    7172                switch(IPC_GET_METHOD(call)) {
    7273                case IPC_M_CONNECT_ME_TO:
    73                         IPC_SET_RETVAL(call, 0);
     74                        retval = EOK;
    7475                        break;
    7576                }
    76                 if (! (callid & IPC_CALLID_NOTIFICATION)) {
    77                         ipc_answer(callid, &call);
    78                 }
    79                 printf("%s: received call from %lX\n", NAME, call.in_phone_hash);
     77                ipc_answer_0(callid, retval);
     78                printf("%s: received call from %lX\n", NAME,
     79                    call.in_phone_hash);
    8080        }
    8181
Note: See TracChangeset for help on using the changeset viewer.