Looks like threading is b0rken on FreeBSD/powerpc

Marcel Moolenaar marcel at xcllnt.net
Fri Aug 4 18:52:15 UTC 2006

[current@ removed from the CC list]

On Wed, Aug 02, 2006 at 04:37:26PM -0700, Peter Grehan wrote:
> >I could use some help with the ABI details.
>  Fire away Marcel.
>  The SVR4 ppc abi is at 
> http://www.cloudcaptech.com/MPC555%20Resources/Programming%20Environment/SVR4abippc.pdf

	struct pcb has an array called pcb_context, which is
used to store non-volatile registers. The ABI tells me that
general registers 13 to 31 are to be saved. FreeBSD also saves
R12, according to the operands of the stmw intruction and the
description of that instruction.

Is this observation correct (i.e. that we also save R12 in the
PCB) and is this intentional?

 Marcel Moolenaar	  USPA: A-39004		 marcel at xcllnt.net

More information about the freebsd-ppc mailing list