ARM setjmp and r12

Shaun Jackman sjackman@gmail.com
Thu Apr 27 18:49:00 GMT 2006


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


More information about the Newlib mailing list