nios2: add static interrupt handling code
Supports Internal Interrupt Controller only for now; EIC supoort tracked in ZEP-258. Change-Id: I2d9c5180e61c06b377fce4bda8a59042b68d58f2 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
e2ff2fdd91
commit
738dec483e
8 changed files with 159 additions and 6 deletions
|
@ -24,6 +24,8 @@
|
|||
#ifndef _SW_ISR_TABLE__H_
|
||||
#define _SW_ISR_TABLE__H_
|
||||
|
||||
#include <arch/cpu.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -43,6 +45,8 @@ typedef struct _IsrTableEntry _IsrTableEntry_t;
|
|||
|
||||
#ifdef CONFIG_ARC
|
||||
extern _IsrTableEntry_t _sw_isr_table[CONFIG_NUM_IRQS - 16];
|
||||
#elif CONFIG_NIOS2
|
||||
extern _IsrTableEntry_t _sw_isr_table[NIOS2_NIRQ];
|
||||
#else
|
||||
extern _IsrTableEntry_t _sw_isr_table[CONFIG_NUM_IRQS];
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue