Subversion Repositories HelenOS

Rev

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

Rev 2264 Rev 2274
Line 146... Line 146...
146
/** Interrupt Exception handler.
146
/** Interrupt Exception handler.
147
 * Determines the sources of interrupt, and calls their handlers.
147
 * Determines the sources of interrupt, and calls their handlers.
148
 */
148
 */
149
static void irq_exception(int exc_no, istate_t* istate)
149
static void irq_exception(int exc_no, istate_t* istate)
150
{
150
{
-
 
151
// TODO: move somewhere to gxemul.c and use machine_irq_exception (or some similar
-
 
152
// name) to avoid using MACHINE == MACHINE_GXEMUL_TESTARM
151
#if MACHINE == MACHINE_GXEMUL_TESTARM
153
#if MACHINE == MACHINE_GXEMUL_TESTARM
152
    uint32_t sources = gxemul_irqc_get_sources();
154
    uint32_t sources = gxemul_irqc_get_sources();
153
    int i = 0;
155
    int i = 0;
154
    for (; i < GXEMUL_IRQC_MAX_IRQ; i++) {
156
    for (; i < GXEMUL_IRQC_MAX_IRQ; i++) {
155
        if (sources & (1 << i)) {
157
        if (sources & (1 << i)) {