Changeset c621f4aa in mainline for kernel/generic/src/syscall/syscall.c
- Timestamp:
- 2010-07-25T10:11:13Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 377cce8
- Parents:
- 24a2517 (diff), a2da43c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/generic/src/syscall/syscall.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/syscall/syscall.c
r24a2517 rc621f4aa 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, … … 153 162 154 163 /* Sysinfo syscalls */ 155 (syshandler_t) sys_sysinfo_valid, 156 (syshandler_t) sys_sysinfo_value, 164 (syshandler_t) sys_sysinfo_get_tag, 165 (syshandler_t) sys_sysinfo_get_value, 166 (syshandler_t) sys_sysinfo_get_data_size, 167 (syshandler_t) sys_sysinfo_get_data, 157 168 158 169 /* Debug calls */
Note:
See TracChangeset
for help on using the changeset viewer.
