This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ARM ISR routines. [v2]
> OK, I have been persuaded that we need to support using the frame
> pointer inside interrupt handler functions, so he is the modified
> patch. The patch is the same as the last one except that now if the
> frame pointer is needed (including the case twhen stack frames are
> requested) the code will push the IP register before corrupting and
> then pop it at the end of the function.
Is there any strong reason why you need to use IP to establish a frame pointer
at all? I.e. rather than
mov ip, sp
stmfd sp!, {r4, r5, fp, ip, lr, pc}
sub fp, ip, #4
something more like
stmfd sp!, {r4, r5, fp, ip, lr, pc}
add fp, sp, #20
p.
PGP signature