Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2013 09:56:11 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org, freebsd-sparc64@freebsd.org
Cc:        Adrian Chadd <adrian@freebsd.org>
Subject:   Re: [head tinderbox] failure on sparc64/sparc64
Message-ID:  <201307110956.11699.jhb@freebsd.org>
In-Reply-To: <CAJ-Vmo=f2bATi_zOGCDCSjANA2E8Jn51m-Nwk8Q7Jki4D29aTg@mail.gmail.com>
References:  <201307110418.r6B4I4k8072864@freebsd-current.sentex.ca> <20130711070541.GA21264@itx> <CAJ-Vmo=f2bATi_zOGCDCSjANA2E8Jn51m-Nwk8Q7Jki4D29aTg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, July 11, 2013 3:07:33 am Adrian Chadd wrote:
> On 11 July 2013 00:05, Navdeep Parhar <nparhar@gmail.com> wrote:
> > On Wed, Jul 10, 2013 at 10:38:47PM -0700, Adrian Chadd wrote:
> >> I don't get why this is dying. any ideas?
> >
> > Maybe because sparc64's ucontext.h is getting pulled in, and it has
> > this:
> >
> > #define mc_flags        mc_global[0]
> 
> Ugh, we should fix this. When did this happen?

annotate is your friend.  It's over 10 years old:

Working file: /home/jhb/work/freebsd/svn/head/sys/sparc64/include/ucontext.h
------------------------------------------------------------------------
r105733 | jake | 2002-10-22 14:03:15 -0400 (Tue, 22 Oct 2002) | 13 lines

- Expand struct trapframe to 256 bytes, make all fields fixed width and the
  same size.  Add some fields that previously overlapped with something else
  or were missing.
- Make struct regs and struct mcontext (minus floating point) the same as
  struct trapframe so converting between them is easy (null).
- Add space for saving floating point state to struct mcontext.  This requires
  that it be 64 byte aligned.
- Add assertions that none of these structures change size, as they are part
  of the ABI.
- Remove some dead code in sendsig().
- Save and restore %gsr in struct trapframe.  Remember to restore %fsr.
- Add some comments to exception.S.

------------------------------------------------------------------------

-- 
John Baldwin



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