This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
ARM setjmp and r12
- From: "Shaun Jackman" <sjackman at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Wed, 26 Apr 2006 16:32:47 -0600
- Subject: ARM setjmp and r12
- Reply-to: "Shaun Jackman" <sjackman at gmail dot com>
On the ARM, why does setjmp preserve r12 (ip)? I believe r12 is
caller-preserved, not callee-preserved.
arm/setjmp.S:122
/* Save all the callee-preserved registers into the jump buffer. */
stmea a1!, { v1-v7, fp, ip, sp, lr }
Cheers,
Shaun