Subversion Repositories HelenOS

Rev

Rev 2799 | Rev 3424 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2799 Rev 2817
Line 84... Line 84...
84
 * CPU is interrupts_disable()'d.
84
 * CPU is interrupts_disable()'d.
85
 */
85
 */
86
void exc_dispatch(int n, istate_t *istate)
86
void exc_dispatch(int n, istate_t *istate)
87
{
87
{
88
    ASSERT(n < IVT_ITEMS);
88
    ASSERT(n < IVT_ITEMS);
-
 
89
 
-
 
90
    if (THREAD) THREAD->uspace_state = istate;
89
   
91
   
90
    exc_table[n].f(n + IVT_FIRST, istate);
92
    exc_table[n].f(n + IVT_FIRST, istate);
-
 
93
 
-
 
94
    if (THREAD) THREAD->uspace_state = NULL;
-
 
95
 
91
    /* This is a safe place to exit exiting thread */
96
    /* This is a safe place to exit exiting thread */
92
    if (THREAD && THREAD->interrupted && istate_from_uspace(istate))
97
    if (THREAD && THREAD->interrupted && istate_from_uspace(istate))
93
        thread_exit();
98
        thread_exit();
94
}
99
}
95
 
100