Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Acknowledge exception handler in Linux
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
119 subscribers
Views
2604 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
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
Acknowledge exception handler in Linux
Michele Portolan
over 12 years ago
Martin Weidmann
over 12 years ago
Note: This was originally posted on 2nd April 2012 at
http://forums.arm.com
I'm afraid that I'm not a Linux expert, but I have a theory.
The standard return sequence for an Undef exception puts the pc back to the instruction which triggered the Undef. This would lead to the instruction being re-executed.
This may sounds odd, but fits the use case for Undefs pretty well. The common scenarios are:
* Instruction that the task will never be able to execute (e.g. due to priviledge restrictions) - kill task
* VFP/NEON instruction when VFP/NEON disabled - turn on VFP/NEON
So you usually either want to re-execute the instruction or kill the task.
Cancel
Vote up
0
Vote down
Cancel
Michele Portolan
over 12 years ago
Note: This was originally posted on 5th April 2012 at
http://forums.arm.com
Thanks for the answer, but from what I udnerstand from the manuals (I am an ARM newbie) the default return value from an "Undefined Instruction" is PC+4. I think tha tI am ratehr lookign at it the wrong way by using the "signal" function.
How can I modify the Exception table to point to my function? When I try to write to 0X04or 0XFFFF0004 to store the address of my handler, I get an error....
Thanks,
Michele
Cancel
Vote up
0
Vote down
Cancel