Nios® V Processor Software Developer Handbook

ID 743810
Date 2/14/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

8.4.1.7.1. Separate General Exception Stack

Use the hal.linker.enable_interrupt_stack BSP setting to enable a separate general exception stack.

The HAL general exception funnel code takes care of correctly changing the stack pointer on entry to and exit from an exception handler.

Table 35.  Separate Exception Stack Usage
Interrupt Controller Separate General

Exception Stack

Application Stack General Exception Stack
Internal Interrupt Controller (IIC) Not enabled
  • Application
  • Software exceptions
  • Hardware interrupts
  • Timer interrupts
  • Software interrupt
Enabled
  • Application
  • Software exceptions
  • Hardware interrupts
  • Timer interrupts
  • Software interrupt
Note: If your ISR is located in a vector table, the HAL does not provide funnel code. In this case, your code must manage the stack pointer, as well as all other funnel code functions.