NIOS2 exceptions...

Evening...

Seen in u-boot source code that before returning from an interrupt the return address is adjusted by "-4"...

And interestingly this needs to be done although the NIOS2 datasheets says that the address of the next instruction is saved...

thanx in advance rick

Reply to
Jedi
Loading thread data ...

Yes, this is correct. The pc+4 of the interrupted instruction is saved by Nios II on an interrupt. So, you need to subtract 4 from this value to return back to the interrupted instruction and continue on.

+james+
Reply to
James Ball

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.