litex/misoc/software/libbase/exception.c
Sebastien Bourdeauducq e92d00f767 move software into misoc
2015-09-28 15:30:19 +08:00

19 lines
407 B
C

void isr(void);
#ifdef __or1k__
#define EXTERNAL_IRQ 0x8
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)
{
if(vect == EXTERNAL_IRQ) {
isr();
} else {
/* Unhandled exception */
for(;;);
}
}
#endif