Changes in kernel/generic/src/syscall/syscall.c [da1bafb:9dae191e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/syscall/syscall.c
rda1bafb r9dae191e 59 59 unative_t a4, unative_t a5, unative_t a6, unative_t id) 60 60 { 61 unative_t rc; 62 61 63 /* Do userpace accounting */ 62 irq_spinlock_lock(&THREAD->lock, true);63 64 thread_update_accounting(true); 64 irq_spinlock_unlock(&THREAD->lock, true); 65 65 66 66 #ifdef CONFIG_UDEBUG 67 67 /* 68 68 * Early check for undebugged tasks. We do not lock anything as this 69 69 * test need not be precise in either direction. 70 *71 70 */ 72 if (THREAD->udebug.active) 71 if (THREAD->udebug.active) { 73 72 udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, 0, false); 73 } 74 74 #endif 75 75 76 unative_t rc;77 76 if (id < SYSCALL_END) { 78 77 rc = syscall_table[id](a1, a2, a3, a4, a5, a6); … … 89 88 if (THREAD->udebug.active) { 90 89 udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, rc, true); 91 90 92 91 /* 93 92 * Stopping point needed for tasks that only invoke … … 99 98 } 100 99 #endif 101 100 102 101 /* Do kernel accounting */ 103 irq_spinlock_lock(&THREAD->lock, true);104 102 thread_update_accounting(false); 105 irq_spinlock_unlock(&THREAD->lock, true);106 103 107 104 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.