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 94... Line 94...
94
{
94
{
95
    clock();
95
    clock();
96
    start_decrementer();
96
    start_decrementer();
97
}
97
}
98
 
98
 
-
 
99
#ifdef CONFIG_UDEBUG
-
 
100
 
99
static void exception_program_trap(istate_t *istate)
101
static void exception_program_trap(istate_t *istate)
100
{
102
{
101
    if (istate_from_uspace(istate))
103
    if (istate_from_uspace(istate))
102
        udebug_breakpoint_event(0);
104
        udebug_breakpoint_event(0);
103
    else
105
    else
Line 112... Line 114...
112
        fault_if_from_uspace(istate, "Unhandled program exception.");
114
        fault_if_from_uspace(istate, "Unhandled program exception.");
113
        panic("Unhandled program exception.");
115
        panic("Unhandled program exception.");
114
    }
116
    }
115
}
117
}
116
 
118
 
-
 
119
#endif
-
 
120
 
117
/* Initialize basic tables for exception dispatching */
121
/* Initialize basic tables for exception dispatching */
118
void interrupt_init(void)
122
void interrupt_init(void)
119
{
123
{
120
    exc_register(VECTOR_DATA_STORAGE, "data_storage", pht_refill);
124
    exc_register(VECTOR_DATA_STORAGE, "data_storage", pht_refill);
121
    exc_register(VECTOR_INSTRUCTION_STORAGE, "instruction_storage", pht_refill);
125
    exc_register(VECTOR_INSTRUCTION_STORAGE, "instruction_storage", pht_refill);
122
    exc_register(VECTOR_EXTERNAL, "external", exception_external);
126
    exc_register(VECTOR_EXTERNAL, "external", exception_external);
123
    exc_register(VECTOR_DECREMENTER, "timer", exception_decrementer);
127
    exc_register(VECTOR_DECREMENTER, "timer", exception_decrementer);
-
 
128
#ifdef CONFIG_UDEBUG
124
    exc_register(VECTOR_PROGRAM, "program", exception_program);
129
    exc_register(VECTOR_PROGRAM, "program", exception_program);
-
 
130
#endif
125
}
131
}
126
 
132
 
127
/** @}
133
/** @}
128
 */
134
 */