Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
ARM7TDMI - Exceptions
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
118 subscribers
Views
2467 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
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
ARM7TDMI - Exceptions
Junaid Kk
over 12 years ago
Note: This was originally posted on 2nd June 2011 at
http://forums.arm.com
Hi All,
I have a doubt in ARM7TDMI exception,
Once exception (FIQ, IRQ, or Data Abort, Pre-fetch Abort) occured, then regardless of the previouse mode (ARM or THUMB) the lr value will be as follows
FIQ -> PC+4 , where PC is the next instruction to be executed after return frm exception
IRQ -> PC+4, where PC is the next instruction to be executed after return frm exception
Data Abrt -> PC+8, where PC is the instruction which got aborted
PreFetch -> PC + 4 , where where PC is the prefetched instruction.
Why this is same for both ARM and Thumb mode?
Can anyone explain?
Parents
Martin Weidmann
over 12 years ago
Note: This was originally posted on 2nd June 2011 at
http://forums.arm.com
It's just legacy. These numbers came from how early harms dealt with exceptions. The numbers are maintained for backwards compatibility.
Cancel
Vote up
0
Vote down
Cancel
Reply
Martin Weidmann
over 12 years ago
Note: This was originally posted on 2nd June 2011 at
http://forums.arm.com
It's just legacy. These numbers came from how early harms dealt with exceptions. The numbers are maintained for backwards compatibility.
Cancel
Vote up
0
Vote down
Cancel
Children
No data