Changeset d7dfa05 in mainline
- Timestamp:
- 2019-06-20T14:07:25Z (6 years ago)
- Children:
- 5acf533
- Parents:
- 64b7854
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/_bits/native.h
r64b7854 rd7dfa05 70 70 #endif 71 71 72 #define uspace_ptr_as_area_info_t uspace_ptr(as_area_info_t) 73 #define uspace_ptr_as_area_pager_info_t uspace_ptr(as_area_pager_info_t) 74 #define uspace_ptr_cap_irq_handle_t uspace_ptr(cap_irq_handle_t) 75 #define uspace_ptr_cap_phone_handle_t uspace_ptr(cap_phone_handle_t) 76 #define uspace_ptr_cap_waitq_handle_t uspace_ptr(cap_waitq_handle_t) 77 #define uspace_ptr_char uspace_ptr(char) 78 #define uspace_ptr_const_char uspace_ptr(const char) 79 #define uspace_ptr_ddi_ioarg_t uspace_ptr(ddi_ioarg_t) 80 #define uspace_ptr_ipc_data_t uspace_ptr(ipc_data_t) 81 #define uspace_ptr_irq_code_t uspace_ptr(irq_code_t) 82 #define uspace_ptr_size_t uspace_ptr(size_t) 83 #define uspace_ptr_struct_uspace_arg uspace_ptr(struct uspace_arg) 84 #define uspace_ptr_sysarg64_t uspace_ptr(sysarg64_t) 85 #define uspace_ptr_task_id_t uspace_ptr(task_id_t) 86 #define uspace_ptr_thread_id_t uspace_ptr(thread_id_t) 87 #define uspace_ptr_uintptr_t uspace_ptr(uintptr_t) 88 #define uspace_ptr_uspace_arg_t uspace_ptr(uspace_arg_t) 89 #define uspace_ptr_uspace_thread_function_t uspace_ptr(uspace_thread_function_t) 90 72 91 __HELENOS_DECLS_END; 73 92 -
abi/include/abi/proc/uarg.h
r64b7854 rd7dfa05 47 47 size_t uspace_stack_size; 48 48 49 uspace_ptr (uspace_thread_function_t)uspace_thread_function;49 uspace_ptr_uspace_thread_function_t uspace_thread_function; 50 50 uspace_addr_t uspace_thread_arg; 51 51 52 uspace_ptr (struct uspace_arg)uspace_uarg;52 uspace_ptr_struct_uspace_arg uspace_uarg; 53 53 } uspace_arg_t; 54 54 -
kernel/generic/include/ddi/ddi.h
r64b7854 rd7dfa05 71 71 extern sys_errno_t sys_dmamem_unmap(uintptr_t, size_t, unsigned int); 72 72 73 extern sys_errno_t sys_iospace_enable(uspace_ptr (ddi_ioarg_t));74 extern sys_errno_t sys_iospace_disable(uspace_ptr (ddi_ioarg_t));73 extern sys_errno_t sys_iospace_enable(uspace_ptr_ddi_ioarg_t); 74 extern sys_errno_t sys_iospace_disable(uspace_ptr_ddi_ioarg_t); 75 75 76 76 /* -
kernel/generic/include/ipc/irq.h
r64b7854 rd7dfa05 50 50 extern void ipc_irq_top_half_handler(irq_t *); 51 51 52 extern errno_t ipc_irq_subscribe(answerbox_t *, inr_t, sysarg_t, uspace_ptr (irq_code_t),53 uspace_ptr (cap_irq_handle_t));52 extern errno_t ipc_irq_subscribe(answerbox_t *, inr_t, sysarg_t, uspace_ptr_irq_code_t, 53 uspace_ptr_cap_irq_handle_t); 54 54 extern errno_t ipc_irq_unsubscribe(answerbox_t *, cap_irq_handle_t); 55 55 -
kernel/generic/include/ipc/sysipc.h
r64b7854 rd7dfa05 44 44 extern sys_errno_t sys_ipc_call_async_fast(cap_phone_handle_t, sysarg_t, 45 45 sysarg_t, sysarg_t, sysarg_t, sysarg_t); 46 extern sys_errno_t sys_ipc_call_async_slow(cap_phone_handle_t, uspace_ptr (ipc_data_t),46 extern sys_errno_t sys_ipc_call_async_slow(cap_phone_handle_t, uspace_ptr_ipc_data_t, 47 47 sysarg_t); 48 48 extern sys_errno_t sys_ipc_answer_fast(cap_call_handle_t, sysarg_t, sysarg_t, 49 49 sysarg_t, sysarg_t, sysarg_t); 50 extern sys_errno_t sys_ipc_answer_slow(cap_call_handle_t, uspace_ptr (ipc_data_t));51 extern sys_errno_t sys_ipc_wait_for_call(uspace_ptr (ipc_data_t), uint32_t, unsigned int);50 extern sys_errno_t sys_ipc_answer_slow(cap_call_handle_t, uspace_ptr_ipc_data_t); 51 extern sys_errno_t sys_ipc_wait_for_call(uspace_ptr_ipc_data_t, uint32_t, unsigned int); 52 52 extern sys_errno_t sys_ipc_poke(void); 53 53 extern sys_errno_t sys_ipc_forward_fast(cap_call_handle_t, cap_phone_handle_t, 54 54 sysarg_t, sysarg_t, sysarg_t, unsigned int); 55 55 extern sys_errno_t sys_ipc_forward_slow(cap_call_handle_t, cap_phone_handle_t, 56 uspace_ptr (ipc_data_t), unsigned int);56 uspace_ptr_ipc_data_t, unsigned int); 57 57 extern sys_errno_t sys_ipc_hangup(cap_phone_handle_t); 58 58 59 extern sys_errno_t sys_ipc_irq_subscribe(inr_t, sysarg_t, uspace_ptr (irq_code_t),60 uspace_ptr (cap_irq_handle_t));59 extern sys_errno_t sys_ipc_irq_subscribe(inr_t, sysarg_t, uspace_ptr_irq_code_t, 60 uspace_ptr_cap_irq_handle_t); 61 61 extern sys_errno_t sys_ipc_irq_unsubscribe(cap_irq_handle_t); 62 62 63 extern sys_errno_t sys_ipc_connect_kbox(uspace_ptr (task_id_t), uspace_ptr(cap_phone_handle_t));63 extern sys_errno_t sys_ipc_connect_kbox(uspace_ptr_task_id_t, uspace_ptr_cap_phone_handle_t); 64 64 65 65 #endif -
kernel/generic/include/log.h
r64b7854 rd7dfa05 53 53 54 54 extern sys_errno_t sys_klog(sysarg_t, uspace_addr_t buf, size_t size, 55 sysarg_t level, uspace_ptr (size_t)uspace_nread);55 sysarg_t level, uspace_ptr_size_t uspace_nread); 56 56 57 57 #endif /* KERN_LOG_H_ */ -
kernel/generic/include/mm/as.h
r64b7854 rd7dfa05 373 373 /* Address space area related syscalls. */ 374 374 extern sysarg_t sys_as_area_create(uintptr_t, size_t, unsigned int, uintptr_t, 375 uspace_ptr (as_area_pager_info_t));375 uspace_ptr_as_area_pager_info_t); 376 376 extern sys_errno_t sys_as_area_resize(uintptr_t, size_t, unsigned int); 377 377 extern sys_errno_t sys_as_area_change_flags(uintptr_t, unsigned int); 378 extern sys_errno_t sys_as_area_get_info(uintptr_t, uspace_ptr (as_area_info_t));378 extern sys_errno_t sys_as_area_get_info(uintptr_t, uspace_ptr_as_area_info_t); 379 379 extern sys_errno_t sys_as_area_destroy(uintptr_t); 380 380 -
kernel/generic/include/mm/page.h
r64b7854 rd7dfa05 68 68 69 69 extern errno_t page_find_mapping(uintptr_t, uintptr_t *); 70 extern sys_errno_t sys_page_find_mapping(uintptr_t, uspace_ptr (uintptr_t));70 extern sys_errno_t sys_page_find_mapping(uintptr_t, uspace_ptr_uintptr_t); 71 71 72 72 #endif -
kernel/generic/include/proc/program.h
r64b7854 rd7dfa05 60 60 extern void program_ready(program_t *); 61 61 62 extern sys_errno_t sys_program_spawn_loader(uspace_ptr (char), size_t);62 extern sys_errno_t sys_program_spawn_loader(uspace_ptr_char, size_t); 63 63 64 64 #endif -
kernel/generic/include/proc/task.h
r64b7854 rd7dfa05 164 164 165 165 #ifdef __32_BITS__ 166 extern sys_errno_t sys_task_get_id(uspace_ptr (sysarg64_t));166 extern sys_errno_t sys_task_get_id(uspace_ptr_sysarg64_t); 167 167 #endif 168 168 … … 171 171 #endif 172 172 173 extern sys_errno_t sys_task_set_name(uspace_ptr (const char), size_t);174 extern sys_errno_t sys_task_kill(uspace_ptr (task_id_t));173 extern sys_errno_t sys_task_set_name(uspace_ptr_const_char, size_t); 174 extern sys_errno_t sys_task_kill(uspace_ptr_task_id_t); 175 175 extern sys_errno_t sys_task_exit(sysarg_t); 176 176 -
kernel/generic/include/proc/thread.h
r64b7854 rd7dfa05 265 265 266 266 /* Thread syscall prototypes. */ 267 extern sys_errno_t sys_thread_create(uspace_ptr (uspace_arg_t), uspace_ptr(char), size_t,268 uspace_ptr (thread_id_t));267 extern sys_errno_t sys_thread_create(uspace_ptr_uspace_arg_t, uspace_ptr_char, size_t, 268 uspace_ptr_thread_id_t); 269 269 extern sys_errno_t sys_thread_exit(int); 270 extern sys_errno_t sys_thread_get_id(uspace_ptr (thread_id_t));270 extern sys_errno_t sys_thread_get_id(uspace_ptr_thread_id_t); 271 271 extern sys_errno_t sys_thread_usleep(uint32_t); 272 272 extern sys_errno_t sys_thread_udelay(uint32_t); -
kernel/generic/include/security/perm.h
r64b7854 rd7dfa05 75 75 #ifdef __32_BITS__ 76 76 77 extern sys_errno_t sys_perm_grant(uspace_ptr (sysarg64_t), perm_t);78 extern sys_errno_t sys_perm_revoke(uspace_ptr (sysarg64_t), perm_t);77 extern sys_errno_t sys_perm_grant(uspace_ptr_sysarg64_t, perm_t); 78 extern sys_errno_t sys_perm_revoke(uspace_ptr_sysarg64_t, perm_t); 79 79 80 80 #endif /* __32_BITS__ */ -
kernel/generic/include/synch/syswaitq.h
r64b7854 rd7dfa05 43 43 extern void sys_waitq_task_cleanup(void); 44 44 45 extern sys_errno_t sys_waitq_create(uspace_ptr (cap_waitq_handle_t));45 extern sys_errno_t sys_waitq_create(uspace_ptr_cap_waitq_handle_t); 46 46 extern sys_errno_t sys_waitq_sleep(cap_waitq_handle_t, uint32_t, unsigned int); 47 47 extern sys_errno_t sys_waitq_wakeup(cap_waitq_handle_t); -
kernel/generic/include/sysinfo/sysinfo.h
r64b7854 rd7dfa05 163 163 164 164 extern sys_errno_t sys_sysinfo_get_keys_size(uspace_addr_t, size_t, uspace_addr_t); 165 extern sys_errno_t sys_sysinfo_get_keys(uspace_addr_t, size_t, uspace_addr_t, size_t, uspace_ptr (size_t));165 extern sys_errno_t sys_sysinfo_get_keys(uspace_addr_t, size_t, uspace_addr_t, size_t, uspace_ptr_size_t); 166 166 extern sysarg_t sys_sysinfo_get_val_type(uspace_addr_t, size_t); 167 167 extern sys_errno_t sys_sysinfo_get_value(uspace_addr_t, size_t, uspace_addr_t); 168 168 extern sys_errno_t sys_sysinfo_get_data_size(uspace_addr_t, size_t, uspace_addr_t); 169 extern sys_errno_t sys_sysinfo_get_data(uspace_addr_t, size_t, uspace_addr_t, size_t, uspace_ptr (size_t));169 extern sys_errno_t sys_sysinfo_get_data(uspace_addr_t, size_t, uspace_addr_t, size_t, uspace_ptr_size_t); 170 170 171 171 #endif -
kernel/generic/src/ddi/ddi.c
r64b7854 rd7dfa05 393 393 * 394 394 */ 395 sys_errno_t sys_iospace_enable(uspace_ptr (ddi_ioarg_t)uspace_io_arg)395 sys_errno_t sys_iospace_enable(uspace_ptr_ddi_ioarg_t uspace_io_arg) 396 396 { 397 397 ddi_ioarg_t arg; … … 404 404 } 405 405 406 sys_errno_t sys_iospace_disable(uspace_ptr (ddi_ioarg_t)uspace_io_arg)406 sys_errno_t sys_iospace_disable(uspace_ptr_ddi_ioarg_t uspace_io_arg) 407 407 { 408 408 ddi_ioarg_t arg; -
kernel/generic/src/ipc/irq.c
r64b7854 rd7dfa05 223 223 * 224 224 */ 225 static irq_code_t *code_from_uspace(uspace_ptr (irq_code_t)ucode)225 static irq_code_t *code_from_uspace(uspace_ptr_irq_code_t ucode) 226 226 { 227 227 irq_pio_range_t *ranges = NULL; … … 323 323 */ 324 324 errno_t ipc_irq_subscribe(answerbox_t *box, inr_t inr, sysarg_t imethod, 325 uspace_ptr (irq_code_t) ucode, uspace_ptr(cap_irq_handle_t)uspace_handle)325 uspace_ptr_irq_code_t ucode, uspace_ptr_cap_irq_handle_t uspace_handle) 326 326 { 327 327 if ((inr < 0) || (inr > last_inr)) -
kernel/generic/src/ipc/sysipc.c
r64b7854 rd7dfa05 419 419 * 420 420 */ 421 sys_errno_t sys_ipc_call_async_slow(cap_phone_handle_t handle, uspace_ptr (ipc_data_t)data,421 sys_errno_t sys_ipc_call_async_slow(cap_phone_handle_t handle, uspace_ptr_ipc_data_t data, 422 422 sysarg_t label) 423 423 { … … 623 623 */ 624 624 sys_errno_t sys_ipc_forward_slow(cap_call_handle_t chandle, 625 cap_phone_handle_t phandle, uspace_ptr (ipc_data_t)data, unsigned int mode)625 cap_phone_handle_t phandle, uspace_ptr_ipc_data_t data, unsigned int mode) 626 626 { 627 627 ipc_data_t newdata; … … 700 700 * 701 701 */ 702 sys_errno_t sys_ipc_answer_slow(cap_call_handle_t chandle, uspace_ptr (ipc_data_t)data)702 sys_errno_t sys_ipc_answer_slow(cap_call_handle_t chandle, uspace_ptr_ipc_data_t data) 703 703 { 704 704 kobject_t *kobj = cap_unpublish(TASK, chandle, KOBJECT_TYPE_CALL); … … 766 766 * @return An error code on error. 767 767 */ 768 sys_errno_t sys_ipc_wait_for_call(uspace_ptr (ipc_data_t)calldata, uint32_t usec,768 sys_errno_t sys_ipc_wait_for_call(uspace_ptr_ipc_data_t calldata, uint32_t usec, 769 769 unsigned int flags) 770 770 { … … 888 888 */ 889 889 sys_errno_t sys_ipc_irq_subscribe(inr_t inr, sysarg_t imethod, 890 uspace_ptr (irq_code_t) ucode, uspace_ptr(cap_irq_handle_t)uspace_handle)890 uspace_ptr_irq_code_t ucode, uspace_ptr_cap_irq_handle_t uspace_handle) 891 891 { 892 892 if (!(perm_get(TASK) & PERM_IRQ_REG)) … … 918 918 * 919 919 */ 920 sys_errno_t sys_ipc_connect_kbox(uspace_ptr (task_id_t)uspace_taskid,921 uspace_ptr (cap_phone_handle_t)uspace_phone)920 sys_errno_t sys_ipc_connect_kbox(uspace_ptr_task_id_t uspace_taskid, 921 uspace_ptr_cap_phone_handle_t uspace_phone) 922 922 { 923 923 #ifdef CONFIG_UDEBUG -
kernel/generic/src/log/log.c
r64b7854 rd7dfa05 296 296 */ 297 297 sys_errno_t sys_klog(sysarg_t operation, uspace_addr_t buf, size_t size, 298 sysarg_t level, uspace_ptr (size_t)uspace_nread)298 sysarg_t level, uspace_ptr_size_t uspace_nread) 299 299 { 300 300 char *data; -
kernel/generic/src/mm/as.c
r64b7854 rd7dfa05 2092 2092 2093 2093 sysarg_t sys_as_area_create(uintptr_t base, size_t size, unsigned int flags, 2094 uintptr_t bound, uspace_ptr (as_area_pager_info_t)pager_info)2094 uintptr_t bound, uspace_ptr_as_area_pager_info_t pager_info) 2095 2095 { 2096 2096 uintptr_t virt = base; … … 2125 2125 } 2126 2126 2127 sys_errno_t sys_as_area_get_info(uintptr_t address, uspace_ptr (as_area_info_t)dest)2127 sys_errno_t sys_as_area_get_info(uintptr_t address, uspace_ptr_as_area_info_t dest) 2128 2128 { 2129 2129 as_area_t *area; -
kernel/generic/src/mm/page.c
r64b7854 rd7dfa05 215 215 * 216 216 */ 217 sys_errno_t sys_page_find_mapping(uintptr_t virt, uspace_ptr (uintptr_t)phys_ptr)217 sys_errno_t sys_page_find_mapping(uintptr_t virt, uspace_ptr_uintptr_t phys_ptr) 218 218 { 219 219 uintptr_t phys; -
kernel/generic/src/proc/program.c
r64b7854 rd7dfa05 218 218 * 219 219 */ 220 sys_errno_t sys_program_spawn_loader(uspace_ptr (char)uspace_name, size_t name_len)220 sys_errno_t sys_program_spawn_loader(uspace_ptr_char uspace_name, size_t name_len) 221 221 { 222 222 /* Cap length of name and copy it from userspace. */ -
kernel/generic/src/proc/task.c
r64b7854 rd7dfa05 323 323 * 324 324 */ 325 sys_errno_t sys_task_get_id(uspace_ptr (sysarg64_t)uspace_taskid)325 sys_errno_t sys_task_get_id(uspace_ptr_sysarg64_t uspace_taskid) 326 326 { 327 327 /* … … 363 363 * 364 364 */ 365 sys_errno_t sys_task_set_name(const uspace_ptr (char)uspace_name, size_t name_len)365 sys_errno_t sys_task_set_name(const uspace_ptr_char uspace_name, size_t name_len) 366 366 { 367 367 char namebuf[TASK_NAME_BUFLEN]; … … 404 404 * 405 405 */ 406 sys_errno_t sys_task_kill(uspace_ptr (task_id_t)uspace_taskid)406 sys_errno_t sys_task_kill(uspace_ptr_task_id_t uspace_taskid) 407 407 { 408 408 task_id_t taskid; -
kernel/generic/src/proc/thread.c
r64b7854 rd7dfa05 998 998 * 999 999 */ 1000 sys_errno_t sys_thread_create(uspace_ptr (uspace_arg_t) uspace_uarg, uspace_ptr(char)uspace_name,1001 size_t name_len, uspace_ptr (thread_id_t)uspace_thread_id)1000 sys_errno_t sys_thread_create(uspace_ptr_uspace_arg_t uspace_uarg, uspace_ptr_char uspace_name, 1001 size_t name_len, uspace_ptr_thread_id_t uspace_thread_id) 1002 1002 { 1003 1003 if (name_len > THREAD_NAME_BUFLEN - 1) … … 1088 1088 * 1089 1089 */ 1090 sys_errno_t sys_thread_get_id(uspace_ptr (thread_id_t)uspace_thread_id)1090 sys_errno_t sys_thread_get_id(uspace_ptr_thread_id_t uspace_thread_id) 1091 1091 { 1092 1092 /* -
kernel/generic/src/security/perm.c
r64b7854 rd7dfa05 158 158 * 159 159 */ 160 sys_errno_t sys_perm_grant(uspace_ptr (sysarg64_t)uspace_taskid, perm_t perms)160 sys_errno_t sys_perm_grant(uspace_ptr_sysarg64_t uspace_taskid, perm_t perms) 161 161 { 162 162 sysarg64_t taskid; … … 179 179 * 180 180 */ 181 sys_errno_t sys_perm_revoke(uspace_ptr (sysarg64_t)uspace_taskid, perm_t perms)181 sys_errno_t sys_perm_revoke(uspace_ptr_sysarg64_t uspace_taskid, perm_t perms) 182 182 { 183 183 sysarg64_t taskid; -
kernel/generic/src/synch/syswaitq.c
r64b7854 rd7dfa05 88 88 * @return Error code. 89 89 */ 90 sys_errno_t sys_waitq_create(uspace_ptr (cap_waitq_handle_t)whandle)90 sys_errno_t sys_waitq_create(uspace_ptr_cap_waitq_handle_t whandle) 91 91 { 92 92 waitq_t *wq = slab_alloc(waitq_cache, FRAME_ATOMIC); -
kernel/generic/src/sysinfo/sysinfo.c
r64b7854 rd7dfa05 880 880 */ 881 881 sys_errno_t sys_sysinfo_get_keys(uspace_addr_t path_ptr, size_t path_size, 882 uspace_addr_t buffer_ptr, size_t buffer_size, uspace_ptr (size_t)size_ptr)882 uspace_addr_t buffer_ptr, size_t buffer_size, uspace_ptr_size_t size_ptr) 883 883 { 884 884 errno_t rc; … … 1037 1037 */ 1038 1038 sys_errno_t sys_sysinfo_get_data(uspace_addr_t path_ptr, size_t path_size, 1039 uspace_addr_t buffer_ptr, size_t buffer_size, uspace_ptr (size_t)size_ptr)1039 uspace_addr_t buffer_ptr, size_t buffer_size, uspace_ptr_size_t size_ptr) 1040 1040 { 1041 1041 errno_t rc;
Note:
See TracChangeset
for help on using the changeset viewer.