« Return to Thread: FreeBSD/ppc ABI

Re: FreeBSD/ppc ABI

by Rafal Jaworowski :: Rate this Message:

Reply to Author | View in Thread


On 2009-07-07, at 15:41, Justin Hibbits wrote:

> What's the current FreeBSD/ppc ABI register usage?  I'm writing a
> proxy function that messes with some arguments before making the
> target function call, and need to know which registers are free for me
> to use without having to save argument registers.  From reading the
> gcc source it looks like it's a strict SysV R4 ABI, leaving r0, r11,
> and r12 available for me to use.  Is this the case, and are there any
> others available?

We use the plain SVR4 ABI. My understanding is R0, R11 and R12 are  
among volatile group, so you should be careful. Can you use one of the  
SPRGs (what CPU is this, do you need to do the trick in user or  
supervisor mode)?

Rafal

_______________________________________________
freebsd-ppc@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@..."

 « Return to Thread: FreeBSD/ppc ABI