Changes in abi/include/_bits/native.h [99170e0c:5a5269d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/_bits/native.h
r99170e0c r5a5269d 47 47 48 48 #include <inttypes.h> 49 #include <_bits/decls.h> 50 51 __HELENOS_DECLS_BEGIN; 49 52 50 53 typedef uintptr_t pfn_t; … … 53 56 typedef intptr_t native_t; 54 57 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. */ 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; 58 93 59 94 #endif
Note:
See TracChangeset
for help on using the changeset viewer.