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

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
  • 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.