This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]