nios2: implement irq_offload()

For this implementation, the presence of a value in global
_offload_routine signifies to the exception code that we should
enter the IRQ handling code even if there are no bits enabled
in ipending. The 'trap' instruction gets us into the exception
handling code.

Change-Id: Iac96adba0eaf24b54ac28678a31c26517867a4d2
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-06-23 13:49:50 -07:00
commit d4a209d484
4 changed files with 55 additions and 4 deletions

View file

@ -197,6 +197,10 @@ static ALWAYS_INLINE int _IS_IN_ISR(void)
return 1;
}
#ifdef CONFIG_IRQ_OFFLOAD
void _irq_do_offload(void);
#endif
#endif /* _ASMLANGUAGE */
#endif /* _NANO_PRIVATE_H */