Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Aug 2006 14:07:20 -0700
From:      Peter Grehan <grehan@freebsd.org>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        Maxim Sobolev <sobomax@sippysoft.com>, freebsd-ppc@freebsd.org
Subject:   Re: Looks like threading is b0rken on FreeBSD/powerpc
Message-ID:  <44D3B708.3010307@freebsd.org>
In-Reply-To: <20060804185211.GA31585@ns1.xcllnt.net>
References:  <44D12AC0.90009@sippysoft.com> <0C6ADBC1-E3DF-47D1-AA77-EA9BD14E059F@xcllnt.net> <44D13736.6000209@freebsd.org> <20060804185211.GA31585@ns1.xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> Question:
> 	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?

  It was. At the time there was register corruption and I think I 
decided to be more safe than sorry. I may have been reading something 
about r12 in the EABI that led me to believe that it needed to be saved.

  I don't believe there's any need for it to be saved.

later,

Peter.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44D3B708.3010307>