2014-05-14 09:01:38 -04:00
|
|
|
void isr(void);
|
|
|
|
|
|
|
|
#ifdef __or1k__
|
|
|
|
|
|
|
|
#define EXTERNAL_IRQ 0x800
|
|
|
|
|
|
|
|
void exception_handler(unsigned long vect, unsigned long *sp);
|
|
|
|
void exception_handler(unsigned long vect, unsigned long *sp)
|
|
|
|
{
|
2014-07-05 12:56:20 -04:00
|
|
|
if((vect & 0xf00) == EXTERNAL_IRQ) {
|
2014-05-14 09:01:38 -04:00
|
|
|
isr();
|
|
|
|
} else {
|
|
|
|
/* Unhandled exception */
|
|
|
|
for(;;);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|