On 1 Dec 2011, at 16:50, Peter Bergner wrote:
On Thu, 2011-12-01 at 07:42 -0800, Richard Henderson wrote:
I didn't notice CR registers being saved in the linux setjmp
function,
but perhaps I just missed it?
I believe the setjmp/getcontext functions save the entire CR rather
than
just the non-volatile CR fields. Looking at the glibc code, I do see:
mfcr r0
followed by a store of r0.
yes, I wasn't clear - we do the same on Darwin (rather than splitting
out the non-volatile).
However, we (on Darwin) don't seem to save the FPSCR - and there's no
mention of it in "preserved regs" section of the ABI doc. I wonder if
that's an oversight.
Iain