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:
parent
99b2866ed2
commit
d4a209d484
4 changed files with 55 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue