litex/software/libbase/exception.c

20 lines
407 B
C
Raw Normal View History

2014-05-14 09:01:38 -04:00
void isr(void);
#ifdef __or1k__
#define EXTERNAL_IRQ 0x8
2014-05-14 09:01:38 -04:00
void exception_handler(unsigned long vect, unsigned long *regs,
unsigned long pc, unsigned long ea);
void exception_handler(unsigned long vect, unsigned long *regs,
unsigned long pc, unsigned long ea)
2014-05-14 09:01:38 -04:00
{
if(vect == EXTERNAL_IRQ) {
2014-05-14 09:01:38 -04:00
isr();
} else {
/* Unhandled exception */
for(;;);
}
}
#endif