Skip to content
Snippets Groups Projects
Commit b3c960b2 authored by Uwe Kleine-König's avatar Uwe Kleine-König
Browse files

annotate that [fp, #-4] is the saved lr

parent 6fd7ad96
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,7 @@ ENTRY(mcount) ...@@ -136,7 +136,7 @@ ENTRY(mcount)
ldmia sp!, {r0-r3, pc} ldmia sp!, {r0-r3, pc}
trace: trace:
ldr r1, [fp, #-4] ldr r1, [fp, #-4] @ lr of instrumented routine
mov r0, lr mov r0, lr
sub r0, r0, #MCOUNT_INSN_SIZE sub r0, r0, #MCOUNT_INSN_SIZE
mov lr, pc mov lr, pc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment