Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/interrupt/interrupt.c

    rcd98e594 r0d21b53  
    5151#include <print.h>
    5252#include <symtab.h>
    53 #include <proc/thread.h>
    5453
    5554static struct {
     
    9291        ASSERT(n < IVT_ITEMS);
    9392
    94         /* Account user cycles */
    95         if (THREAD) {
    96                 spinlock_lock(&THREAD->lock);
    97                 thread_update_accounting(true);
    98                 spinlock_unlock(&THREAD->lock);
    99         }
    100 
    10193#ifdef CONFIG_UDEBUG
    10294        if (THREAD) THREAD->udebug.uspace_state = istate;
     
    112104        if (THREAD && THREAD->interrupted && istate_from_uspace(istate))
    113105                thread_exit();
    114 
    115         if (THREAD) {
    116                 spinlock_lock(&THREAD->lock);
    117                 thread_update_accounting(false);
    118                 spinlock_unlock(&THREAD->lock);
    119         }
    120106}
    121107
     
    128114
    129115/** Terminate thread and task if exception came from userspace. */
    130 void fault_if_from_uspace(istate_t *istate, const char *fmt, ...)
     116void fault_if_from_uspace(istate_t *istate, char *fmt, ...)
    131117{
    132118        task_t *task = TASK;
     
    176162#if (IVT_ITEMS > 0)
    177163        unsigned int i;
     164        char *symbol;
    178165
    179166        spinlock_lock(&exctbl_lock);
     
    190177       
    191178        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);
    193180
    194181#ifdef __32_BITS__
Note: See TracChangeset for help on using the changeset viewer.