This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Return address from FIQ_Handler. Do we come back to the next instruction?

Is it

MOVS pc, r14

or

SUBS pc, r14, #4

This is written in the ARMDEN0013D. but in the table it says next instruction whereas the SUBS pc, r14, #4 means the instruction which was interrupted.

Parents
  • Yes it does make sense now. The preferred return address is that of the next instruction. And we add +4 so pc points to 8 bytes ahead, which it is supposed to since pc always points to instruction 8 bytes ahead.

    when irq/fiq happens, that is the instruction that is interrupted.

Reply
  • Yes it does make sense now. The preferred return address is that of the next instruction. And we add +4 so pc points to 8 bytes ahead, which it is supposed to since pc always points to instruction 8 bytes ahead.

    when irq/fiq happens, that is the instruction that is interrupted.

Children
No data