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