Changeset d8d542e in mainline
- Timestamp:
- 2007-02-05T15:06:39Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 28af62f
- Parents:
- 4184e76
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/syscall/syscall.c
r4184e76 rd8d542e 68 68 return ELIMIT; 69 69 70 data = malloc(count, 0);70 data = (char *) malloc(count, 0); 71 71 if (!data) 72 72 return ENOMEM; … … 99 99 100 100 if (id < SYSCALL_END) 101 rc = syscall_table[id](a1, a2,a3,a4);101 rc = syscall_table[id](a1, a2, a3, a4); 102 102 else { 103 103 klog_printf("TASK %lld: Unknown syscall id %d",TASK->taskid,id); … … 113 113 114 114 syshandler_t syscall_table[SYSCALL_END] = { 115 sys_io,116 sys_tls_set,115 (syshandler_t) sys_io, 116 (syshandler_t) sys_tls_set, 117 117 118 118 /* Thread and task related syscalls. */ 119 sys_thread_create,120 sys_thread_exit,121 sys_task_get_id,119 (syshandler_t) sys_thread_create, 120 (syshandler_t) sys_thread_exit, 121 (syshandler_t) sys_task_get_id, 122 122 123 123 /* Synchronization related syscalls. */ 124 sys_futex_sleep_timeout,125 sys_futex_wakeup,124 (syshandler_t) sys_futex_sleep_timeout, 125 (syshandler_t) sys_futex_wakeup, 126 126 127 127 /* Address space related syscalls. */ 128 sys_as_area_create,129 sys_as_area_resize,130 sys_as_area_destroy,131 128 (syshandler_t) sys_as_area_create, 129 (syshandler_t) sys_as_area_resize, 130 (syshandler_t) sys_as_area_destroy, 131 132 132 /* IPC related syscalls. */ 133 sys_ipc_call_sync_fast,134 sys_ipc_call_sync,135 sys_ipc_call_async_fast,136 sys_ipc_call_async,137 sys_ipc_answer_fast,138 sys_ipc_answer,139 sys_ipc_forward_fast,140 sys_ipc_wait_for_call,141 sys_ipc_hangup,142 sys_ipc_register_irq,143 sys_ipc_unregister_irq,144 133 (syshandler_t) sys_ipc_call_sync_fast, 134 (syshandler_t) sys_ipc_call_sync, 135 (syshandler_t) sys_ipc_call_async_fast, 136 (syshandler_t) sys_ipc_call_async, 137 (syshandler_t) sys_ipc_answer_fast, 138 (syshandler_t) sys_ipc_answer, 139 (syshandler_t) sys_ipc_forward_fast, 140 (syshandler_t) sys_ipc_wait_for_call, 141 (syshandler_t) sys_ipc_hangup, 142 (syshandler_t) sys_ipc_register_irq, 143 (syshandler_t) sys_ipc_unregister_irq, 144 145 145 /* Capabilities related syscalls. */ 146 sys_cap_grant,147 sys_cap_revoke,148 146 (syshandler_t) sys_cap_grant, 147 (syshandler_t) sys_cap_revoke, 148 149 149 /* DDI related syscalls. */ 150 sys_physmem_map,151 sys_iospace_enable,152 sys_preempt_control,150 (syshandler_t) sys_physmem_map, 151 (syshandler_t) sys_iospace_enable, 152 (syshandler_t) sys_preempt_control, 153 153 154 154 /* Sysinfo syscalls */ 155 sys_sysinfo_valid,156 sys_sysinfo_value,155 (syshandler_t) sys_sysinfo_valid, 156 (syshandler_t) sys_sysinfo_value, 157 157 158 158 /* Debug calls */ 159 sys_debug_enable_console159 (syshandler_t) sys_debug_enable_console 160 160 }; 161 161
Note:
See TracChangeset
for help on using the changeset viewer.