Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Modify Exception handler
Jump...
Cancel
Locked
Locked
Replies
1 reply
Subscribers
118 subscribers
Views
2401 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
Modify Exception handler
Michele Portolan
over 12 years ago
Note: This was originally posted on 6th April 2012 at
http://forums.arm.com
Hello everyone,
I want to run a SW-emulated coprocessor: when the ARM processor generates an "Undefined Instruction", I launch my (assembler or C)procedure to handle it, and then return to the following instruction.
I understand that I have to modify the exception handler at 0XFFFF0004, but how do I do it?
I am new to ARM so I am quite lost....
Thanks,
Michele
Parents
Martin Weidmann
over 12 years ago
Note: This was originally posted on 7th April 2012 at
http://forums.arm.com
The vector table is just in memory, and it contains instructions (not addresses). Typically the instructions are branches to the handlers.
In a bare metal system, you should just need to re-write the instruction to be a branch that goes somewhere else.
If you have a OS, it is the OS that controls the the table. You have to work with whatever calls the OS gives you.
Cancel
Vote up
0
Vote down
Cancel
Reply
Martin Weidmann
over 12 years ago
Note: This was originally posted on 7th April 2012 at
http://forums.arm.com
The vector table is just in memory, and it contains instructions (not addresses). Typically the instructions are branches to the handlers.
In a bare metal system, you should just need to re-write the instruction to be a branch that goes somewhere else.
If you have a OS, it is the OS that controls the the table. You have to work with whatever calls the OS gives you.
Cancel
Vote up
0
Vote down
Cancel
Children
No data