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:
Andrew Boie 2016-06-21 12:18:50 -07:00 committed by Inaky Perez-Gonzalez
commit 738dec483e
8 changed files with 159 additions and 6 deletions

View file

@ -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