nios2: add base exception handling code

Change-Id: I56b0ec1a3576a77ca7bd6f2c0217de8053406927
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-06-21 12:15:33 -07:00 committed by Inaky Perez-Gonzalez
commit e2ff2fdd91
5 changed files with 420 additions and 24 deletions

View file

@ -154,6 +154,7 @@ struct s_NANO {
typedef struct s_NANO tNANO;
extern tNANO _nanokernel;
extern char _interrupt_stack[CONFIG_ISR_STACK_SIZE];
/* Arch-specific nanokernel APIs */
@ -162,7 +163,8 @@ void nano_cpu_atomic_idle(unsigned int key);
static ALWAYS_INLINE void nanoArchInit(void)
{
/* STUB */
_nanokernel.irq_sp = (char *)STACK_ROUND_DOWN(_interrupt_stack +
CONFIG_ISR_STACK_SIZE);
}
static ALWAYS_INLINE void fiberRtnValueSet(struct tcs *fiber,