Subversion Repositories HelenOS

Rev

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

Rev 3424 Rev 3431
Line 85... Line 85...
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
 
89
 
-
 
90
#ifdef CONFIG_UDEBUG
90
    if (THREAD) THREAD->udebug.uspace_state = istate;
91
    if (THREAD) THREAD->udebug.uspace_state = istate;
-
 
92
#endif
91
   
93
   
92
    exc_table[n].f(n + IVT_FIRST, istate);
94
    exc_table[n].f(n + IVT_FIRST, istate);
93
 
95
 
-
 
96
#ifdef CONFIG_UDEBUG
94
    if (THREAD) THREAD->udebug.uspace_state = NULL;
97
    if (THREAD) THREAD->udebug.uspace_state = NULL;
-
 
98
#endif
95
 
99
 
96
    /* This is a safe place to exit exiting thread */
100
    /* This is a safe place to exit exiting thread */
97
    if (THREAD && THREAD->interrupted && istate_from_uspace(istate))
101
    if (THREAD && THREAD->interrupted && istate_from_uspace(istate))
98
        thread_exit();
102
        thread_exit();
99
}
103
}