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

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 04, 2006 at 02:07:20PM -0700, Peter Grehan wrote:
> >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.

Ok, thanks. I won't worry about it right now, but it does affect GDB
when it's changed (if it's changed) in an incompatible way. For now,
I'll have GDB skip r12 so that we have the option later to not save
r12.

FYI,

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



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