Changes in kernel/generic/src/syscall/syscall.c [2fa10f6:9510be2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/syscall/syscall.c
r2fa10f6 r9510be2 59 59 unative_t a4, unative_t a5, unative_t a6, unative_t id) 60 60 { 61 /* Do userpace accounting */ 62 irq_spinlock_lock(&THREAD->lock, true); 63 thread_update_accounting(true); 64 irq_spinlock_unlock(&THREAD->lock, true); 65 61 unative_t rc; 62 66 63 #ifdef CONFIG_UDEBUG 67 64 /* 68 65 * Early check for undebugged tasks. We do not lock anything as this 69 66 * test need not be precise in either direction. 70 *71 67 */ 72 if (THREAD->udebug.active) 68 if (THREAD->udebug.active) { 73 69 udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, 0, false); 70 } 74 71 #endif 75 72 76 unative_t rc;77 73 if (id < SYSCALL_END) { 78 74 rc = syscall_table[id](a1, a2, a3, a4, a5, a6); … … 89 85 if (THREAD->udebug.active) { 90 86 udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, rc, true); 91 87 92 88 /* 93 89 * Stopping point needed for tasks that only invoke … … 99 95 } 100 96 #endif 101 102 /* Do kernel accounting */103 irq_spinlock_lock(&THREAD->lock, true);104 thread_update_accounting(false);105 irq_spinlock_unlock(&THREAD->lock, true);106 97 107 98 return rc; … … 147 138 (syshandler_t) sys_ipc_register_irq, 148 139 (syshandler_t) sys_ipc_unregister_irq, 149 140 150 141 /* Event notification syscalls. */ 151 142 (syshandler_t) sys_event_subscribe, … … 159 150 (syshandler_t) sys_physmem_map, 160 151 (syshandler_t) sys_iospace_enable, 152 (syshandler_t) sys_preempt_control, 161 153 162 154 /* Sysinfo syscalls */ 163 (syshandler_t) sys_sysinfo_get_tag, 164 (syshandler_t) sys_sysinfo_get_value, 165 (syshandler_t) sys_sysinfo_get_data_size, 166 (syshandler_t) sys_sysinfo_get_data, 155 (syshandler_t) sys_sysinfo_valid, 156 (syshandler_t) sys_sysinfo_value, 167 157 168 158 /* Debug calls */
Note:
See TracChangeset
for help on using the changeset viewer.