2014-05-14 09:01:38 -04:00
|
|
|
void isr(void);
|
|
|
|
|
|
|
|
#ifdef __or1k__
|
|
|
|
|
2015-08-01 13:15:42 -04:00
|
|
|
#define EXTERNAL_IRQ 0x8
|
2014-05-14 09:01:38 -04:00
|
|
|
|
2015-08-01 13:15:42 -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
|
|
|
{
|
2015-08-01 13:15:42 -04:00
|
|
|
if(vect == EXTERNAL_IRQ) {
|
2014-05-14 09:01:38 -04:00
|
|
|
isr();
|
|
|
|
} else {
|
|
|
|
/* Unhandled exception */
|
|
|
|
for(;;);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|