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