This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: ARM setjmp and r12
- From: "Schwarz, Konrad" <konrad dot schwarz at siemens dot com>
- To: "Richard Earnshaw" <rearnsha at arm dot com>
- Cc: <newlib at sources dot redhat dot com>
- Date: Tue, 2 May 2006 15:39:15 +0200
- Subject: RE: ARM setjmp and r12
> -----Original Message-----
> From: newlib-owner@sourceware.org
> [mailto:newlib-owner@sourceware.org] On Behalf Of Richard Earnshaw
> I don't really think there is any need to save ip here. It
> certainly can't be for the reason Nick cited (since IP can
> only be used transitively for that purpose).
do you mean "transiently" here?
> Another problem
> is that that means we push an odd number of registers, which
> means that any subsequent stores would be unaligned.
>
> I'm not that thrilled with the way that statement is written,
> why is it using the old APCS names, and why stmea (this isn't
> a stack).
>
> @ Push all call-saved registers, plus the return address.
> @ Keep buffer address aligned so we don't have to re-align
> @ before any co-processor registers.
> stmia r0!, {r4-r11, r13, r14}
>
> would be a much more sensible definition.
>
> R.
>
>