Changeset 132ab5d1 in mainline for abi/include/abi/ipc/ipc.h


Ignore:
Timestamp:
2018-01-30T03:20:45Z (6 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (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.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

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

    r8bfb163 r132ab5d1  
    3838/** Length of data being transferred 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)
     61
     62/** The call was automatically answered by the kernel due to error */
     63#define IPC_CALL_AUTO_REPLY      (1 << 4)
    6164
    6265/**
     
    6669#define DATA_XFER_LIMIT  (64 * 1024)
    6770
    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
    81 
    82 /* Return values from sys_ipc_call_async(). */
    83 #define IPC_CALLRET_FATAL      -1
    84 
    8571/* Macros for manipulating calling data */
    86 #define IPC_SET_RETVAL(data, retval)  ((data).args[0] = (retval))
     72#define IPC_SET_RETVAL(data, retval)  ((data).args[0] = (sysarg_t) (retval))
    8773#define IPC_SET_IMETHOD(data, val)    ((data).args[0] = (val))
    8874#define IPC_SET_ARG1(data, val)       ((data).args[1] = (val))
     
    9379
    9480#define IPC_GET_IMETHOD(data)  ((data).args[0])
    95 #define IPC_GET_RETVAL(data)   ((data).args[0])
     81#define IPC_GET_RETVAL(data)   ((errno_t) (data).args[0])
    9682
    9783#define IPC_GET_ARG1(data)  ((data).args[1])
Note: See TracChangeset for help on using the changeset viewer.