Changeset c47e1a8 in mainline for kernel/generic/src/syscall/syscall.c
- Timestamp:
- 2010-05-21T07:50:04Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d51ee2b
- Parents:
- cf8cc36 (diff), 15b592b (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
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/syscall/syscall.c
rcf8cc36 rc47e1a8 60 60 { 61 61 unative_t rc; 62 ipl_t ipl; 63 64 /* Do userpace accounting */ 65 ipl = interrupts_disable(); 66 spinlock_lock(&THREAD->lock); 67 thread_update_accounting(true); 68 spinlock_unlock(&THREAD->lock); 69 interrupts_restore(ipl); 62 70 63 71 #ifdef CONFIG_UDEBUG … … 95 103 } 96 104 #endif 105 106 /* Do kernel accounting */ 107 (void) interrupts_disable(); 108 spinlock_lock(&THREAD->lock); 109 thread_update_accounting(false); 110 spinlock_unlock(&THREAD->lock); 111 interrupts_restore(ipl); 97 112 98 113 return rc; … … 138 153 (syshandler_t) sys_ipc_register_irq, 139 154 (syshandler_t) sys_ipc_unregister_irq, 140 155 141 156 /* Event notification syscalls. */ 142 157 (syshandler_t) sys_event_subscribe, … … 154 169 155 170 /* Sysinfo syscalls */ 156 (syshandler_t) sys_sysinfo_valid, 157 (syshandler_t) sys_sysinfo_value, 171 (syshandler_t) sys_sysinfo_get_tag, 172 (syshandler_t) sys_sysinfo_get_value, 173 (syshandler_t) sys_sysinfo_get_data_size, 174 (syshandler_t) sys_sysinfo_get_data, 158 175 159 176 /* Debug calls */
Note:
See TracChangeset
for help on using the changeset viewer.