Hi there,
I tried something simple - as i was not sure i got the result of the abort handler correctly...
This is my code:
asm(" MOV R14,#0xffff"); /* copy lower 16 Bits */
asm(" MOVT R14,#0xffff"); /* copy higher 16 Bits */
asm(" MOV PC,R14"); /* set program counter to 0xffffffff */
Which results in an (expected) prefetch abort....
my handler executes coreGetInstructionFaultAddress (which runs mrc p15, #0, r0, c6, c0, #2).The return value is "0xffffffff" - i get that.
But is there any chance, geting the adress of the last "asm" (which caused the abort) - thus being able to track down the source (so to say) of the abort not the destination where the last jump was aimed at?
all the best
Dominik