Changeset 01c3bb4 in mainline for uspace/app/trace/ipcp.c


Ignore:
Timestamp:
2017-11-25T15:43:25Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ce4a21a0
Parents:
98cb5e0d
Message:

Convert call-handling syscalls to capabilities

This commit modifies the behavior of sys_ipc_wait_for_call() to return a
capability handle for requests. This capability handle can be used
either by sys_ipc_answer*() to answer the call or by sys_ipc_forward*()
to forward it further along. Answering or forwarding the call results in
destruction of the respective capability. For requests and
notifications, sys_ipc_wait_for_call() returns CAP_NIL and sets call
flags accordingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/trace/ipcp.c

    r98cb5e0d r01c3bb4  
    189189
    190190        if ((display_mask & DM_IPC) != 0) {
    191                 printf("Call ID: %p, phone: %d, proto: %s, method: ",
    192                     (void *) hash, phone,
     191                printf("Call ID: %d, phone: %d, proto: %s, method: ",
     192                    hash, phone,
    193193                    (proto ? proto->name : "n/a"));
    194194                ipc_m_print(proto, IPC_GET_IMETHOD(*call));
     
    266266       
    267267        if ((display_mask & DM_IPC) != 0) {
    268                 printf("Response to %p: retval=%" PRIdn ", args = (%" PRIun ", "
     268                printf("Response to %d: retval=%" PRIdn ", args = (%" PRIun ", "
    269269                    "%" PRIun ", %" PRIun ", %" PRIun ", %" PRIun ")\n",
    270                     (void *) hash, retval, IPC_GET_ARG1(*answer),
     270                    hash, retval, IPC_GET_ARG1(*answer),
    271271                    IPC_GET_ARG2(*answer), IPC_GET_ARG3(*answer),
    272272                    IPC_GET_ARG4(*answer), IPC_GET_ARG5(*answer));
     
    327327                /* Not a response */
    328328                if ((display_mask & DM_IPC) != 0) {
    329                         printf("Not a response (hash %p)\n", (void *) hash);
     329                        printf("Not a response (hash %d)\n", hash);
    330330                }
    331331                return;
Note: See TracChangeset for help on using the changeset viewer.