Changeset addbce4 in mainline


Ignore:
Timestamp:
2017-12-05T16:03:20Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
40fd6f0
Parents:
9af1c61
git-author:
Jakub Jermar <jakub@…> (2017-12-05 11:59:18)
git-committer:
Jakub Jermar <jakub@…> (2017-12-05 16:03:20)
Message:

Remove IPC_CALLID_* macros

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • abi/include/abi/ipc/ipc.h

    r9af1c61 raddbce4  
    3838/** Length of data being transfered with IPC call
    3939 *
    40  * The uspace may not be able to utilize full length
     40 * The uspace may not be able to utilize the full length
    4141 *
    4242 */
     
    4949
    5050/** This is answer to a call */
    51 #define IPC_CALL_ANSWERED  (1 << 0)
     51#define IPC_CALL_ANSWERED        (1 << 0)
    5252
    5353/** Answer will not be passed to userspace, will be discarded */
     
    5555
    5656/** Call was forwarded */
    57 #define IPC_CALL_FORWARDED  (1 << 2)
     57#define IPC_CALL_FORWARDED       (1 << 2)
    5858
    5959/** Interrupt notification */
    60 #define IPC_CALL_NOTIF  (1 << 3)
     60#define IPC_CALL_NOTIF           (1 << 3)
    6161
    6262/**
     
    6565 */
    6666#define DATA_XFER_LIMIT  (64 * 1024)
    67 
    68 
    69 /** Bits used in call hashes.
    70  *
    71  * The addresses are aligned at least to 4 that is why we can use the 2 least
    72  * significant bits of the call address.
    73  *
    74  */
    75 
    76 /** Type of this call is 'answer' */
    77 #define IPC_CALLID_ANSWERED  1
    78 
    79 /** Type of this call is 'notification' */
    80 #define IPC_CALLID_NOTIFICATION  2
    8167
    8268/* Macros for manipulating calling data */
  • kernel/generic/src/ipc/sysipc.c

    r9af1c61 raddbce4  
    775775                call->data.phone = (void *) call->priv;
    776776               
    777                 call->data.flags = IPC_CALLID_NOTIFICATION;
     777                call->data.flags = IPC_CALL_NOTIF;
    778778
    779779                STRUCT_TO_USPACE(calldata, &call->data);
     
    791791                }
    792792
    793                 call->data.flags = IPC_CALLID_ANSWERED;
     793                call->data.flags = IPC_CALL_ANSWERED;
    794794               
    795795                STRUCT_TO_USPACE(calldata, &call->data);
  • uspace/app/trace/ipcp.c

    r9af1c61 raddbce4  
    323323        pending_call_t *pcall;
    324324       
    325         if ((call->flags & IPC_CALLID_ANSWERED) == 0 &&
     325        if ((call->flags & IPC_CALL_ANSWERED) == 0 &&
    326326            hash != IPCP_CALLID_SYNC) {
    327327                /* Not a response */
  • uspace/lib/c/generic/async.c

    r9af1c61 raddbce4  
    13381338       
    13391339        /* Kernel notification */
    1340         if ((chandle == CAP_NIL) && (call->flags & IPC_CALLID_NOTIFICATION)) {
     1340        if ((chandle == CAP_NIL) && (call->flags & IPC_CALL_NOTIF)) {
    13411341                fibril_t *fibril = (fibril_t *) __tcb_get()->fibril_data;
    13421342                unsigned oldsw = fibril->switches;
     
    14971497                }
    14981498
    1499                 if (call.flags & IPC_CALLID_ANSWERED)
     1499                if (call.flags & IPC_CALL_ANSWERED)
    15001500                        continue;
    15011501
  • uspace/lib/c/generic/ipc.c

    r9af1c61 raddbce4  
    264264       
    265265        /* Handle received answers */
    266         if ((chandle == CAP_NIL) && (call->flags & IPC_CALLID_ANSWERED))
     266        if ((chandle == CAP_NIL) && (call->flags & IPC_CALL_ANSWERED))
    267267                handle_answer(call);
    268268       
     
    295295        do {
    296296                chandle = ipc_wait_cycle(call, usec, SYNCH_FLAGS_NONE);
    297         } while ((chandle == CAP_NIL) && (call->flags & IPC_CALLID_ANSWERED));
     297        } while ((chandle == CAP_NIL) && (call->flags & IPC_CALL_ANSWERED));
    298298       
    299299        return chandle;
     
    317317                chandle = ipc_wait_cycle(call, SYNCH_NO_TIMEOUT,
    318318                    SYNCH_FLAGS_NON_BLOCKING);
    319         } while ((chandle == CAP_NIL) && (call->flags & IPC_CALLID_ANSWERED));
     319        } while ((chandle == CAP_NIL) && (call->flags & IPC_CALL_ANSWERED));
    320320       
    321321        return chandle;
Note: See TracChangeset for help on using the changeset viewer.