Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abi/include/_bits/native.h

    r5a5269d r99170e0c  
    4747
    4848#include <inttypes.h>
    49 #include <_bits/decls.h>
    50 
    51 __HELENOS_DECLS_BEGIN;
    5249
    5350typedef uintptr_t pfn_t;
     
    5653typedef intptr_t  native_t;
    5754
    58 #ifdef KERNEL
    59 
    60 typedef sysarg_t uspace_addr_t;
    61 /* We might implement a way to check validity of the type some day. */
    62 #define uspace_ptr(type) uspace_addr_t
    63 #define USPACE_NULL 0
    64 
    65 #else /* !KERNEL */
    66 
    67 typedef void *uspace_addr_t;
    68 #define uspace_ptr(type) type *
    69 
    70 #endif
    71 
    72 // TODO: Put this in a better location.
    73 #define uspace_ptr_as_area_info_t uspace_ptr(as_area_info_t)
    74 #define uspace_ptr_as_area_pager_info_t uspace_ptr(as_area_pager_info_t)
    75 #define uspace_ptr_cap_irq_handle_t uspace_ptr(cap_irq_handle_t)
    76 #define uspace_ptr_cap_phone_handle_t uspace_ptr(cap_phone_handle_t)
    77 #define uspace_ptr_cap_waitq_handle_t uspace_ptr(cap_waitq_handle_t)
    78 #define uspace_ptr_char uspace_ptr(char)
    79 #define uspace_ptr_const_char uspace_ptr(const char)
    80 #define uspace_ptr_ddi_ioarg_t uspace_ptr(ddi_ioarg_t)
    81 #define uspace_ptr_ipc_data_t uspace_ptr(ipc_data_t)
    82 #define uspace_ptr_irq_code_t uspace_ptr(irq_code_t)
    83 #define uspace_ptr_size_t uspace_ptr(size_t)
    84 #define uspace_ptr_struct_uspace_arg uspace_ptr(struct uspace_arg)
    85 #define uspace_ptr_sysarg64_t uspace_ptr(sysarg64_t)
    86 #define uspace_ptr_task_id_t uspace_ptr(task_id_t)
    87 #define uspace_ptr_thread_id_t uspace_ptr(thread_id_t)
    88 #define uspace_ptr_uintptr_t uspace_ptr(uintptr_t)
    89 #define uspace_ptr_uspace_arg_t uspace_ptr(uspace_arg_t)
    90 #define uspace_ptr_uspace_thread_function_t uspace_ptr(uspace_thread_function_t)
    91 
    92 __HELENOS_DECLS_END;
     55#define PRIdn  PRIdPTR  /**< Format for native_t. */
     56#define PRIun  PRIuPTR  /**< Format for sysarg_t. */
     57#define PRIxn  PRIxPTR  /**< Format for hexadecimal sysarg_t. */
    9358
    9459#endif
Note: See TracChangeset for help on using the changeset viewer.