Changes in kernel/generic/src/interrupt/interrupt.c [0d21b53:cd98e594] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/interrupt/interrupt.c
r0d21b53 rcd98e594 51 51 #include <print.h> 52 52 #include <symtab.h> 53 #include <proc/thread.h> 53 54 54 55 static struct { … … 91 92 ASSERT(n < IVT_ITEMS); 92 93 94 /* Account user cycles */ 95 if (THREAD) { 96 spinlock_lock(&THREAD->lock); 97 thread_update_accounting(true); 98 spinlock_unlock(&THREAD->lock); 99 } 100 93 101 #ifdef CONFIG_UDEBUG 94 102 if (THREAD) THREAD->udebug.uspace_state = istate; … … 104 112 if (THREAD && THREAD->interrupted && istate_from_uspace(istate)) 105 113 thread_exit(); 114 115 if (THREAD) { 116 spinlock_lock(&THREAD->lock); 117 thread_update_accounting(false); 118 spinlock_unlock(&THREAD->lock); 119 } 106 120 } 107 121 … … 114 128 115 129 /** Terminate thread and task if exception came from userspace. */ 116 void fault_if_from_uspace(istate_t *istate, c har *fmt, ...)130 void fault_if_from_uspace(istate_t *istate, const char *fmt, ...) 117 131 { 118 132 task_t *task = TASK; … … 162 176 #if (IVT_ITEMS > 0) 163 177 unsigned int i; 164 char *symbol;165 178 166 179 spinlock_lock(&exctbl_lock); … … 177 190 178 191 for (i = 0; i < IVT_ITEMS; i++) { 179 symbol = symtab_fmt_name_lookup((unative_t) exc_table[i].f);192 const char *symbol = symtab_fmt_name_lookup((unative_t) exc_table[i].f); 180 193 181 194 #ifdef __32_BITS__
Note:
See TracChangeset
for help on using the changeset viewer.