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