Nios® V Processor Software Developer Handbook

ID 743810
Date 1/27/2025
Public

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

Document Table of Contents

9.2.1.2.2.2. Return from Traps

Once a trap is serviced, and the ISR or exception handler returns to the trap handling code, it performs the following tasks:

  • Restores the registers from the stack.
  • Restores the stack pointer (if a separate exception stack is used).
  • Exits by issuing an MRET (exception return in machine mode) instruction.