In the TI Documentation (spru732j-"64x+ DSP CPU and Instruction Set"), there is a discussion about restoring the context after handling the exception to go back to an executable point. The user uses some assembly (B NRP; NOP 5) and they are back to the last known point after the exception occured. In order for that to work, the user should check if 3 bits in the NTSR are set appropriately. If not, you cannot return.
My question is how do I restore the context before I return?
The documentation only states that "Execution of a B NRP instruction causes the saved context in NTSR to be loaded into TSR to resume execution. Similarly, a B IRP instruction restores context from ITSR into TSR."
Is that really all I need to do? I thought that we lose control of any post-processing when I issue the B NRP? How does NTSR processing to restore the context occur then?
I am working on a path right now to read the Exception_Status and from each of those, restore each register, then Branch to NRP.
Any help is appreciated.
Thanks