- Extract the return pointer from the stack frame. Before returning to the calling procedure, the called procedure first retrieves the return pointer from the stack and places it in r2.
- Restore any callee save registers. Any of the callee save registers that have been modified are restored.
- Deallocate the stack frame. The stack space that has been allocated for this procedure must be deallocated by decrementing the stack pointer.
- Branch to the return pointer. A BV instruction to GR2 is used to branch back to the calling procedure.
- Restore the caller save registers. Any of the caller save registers that were saved before the procedure call are restored by the calling procedure.
|
|