svn commit: r204507 - in user/jmallett/octeon/sys/mips: include mips

Juli Mallett jmallett at FreeBSD.org
Tue Mar 2 05:35:04 UTC 2010


On Mon, Mar 1, 2010 at 21:30, M. Warner Losh <imp at bsdimp.com> wrote:
> In message: <201003010521.o215LZqd002772 at svn.freebsd.org>
>            Juli Mallett <jmallett at freebsd.org> writes:
> : Author: jmallett
> : Date: Mon Mar  1 05:21:35 2010
> : New Revision: 204507
> : URL: http://svn.freebsd.org/changeset/base/204507
> :
> : Log:
> :   o) Adjust ptr and register macros for assembly wrt ABI in a way that ought to
> :      work better.  Need to check for places where the assembly assumes pointers
> :      are register width, I guess.
>
> NetBSD has much better asm.h foo, which I'd hoped to import to help
> with this problem...

I think that's a great idea — especially now that they have n32 and
n64 support.  Likewise for their PIC and GP macros.

In general I'd hope to have time to spend cleaning up mips/include — I
took a swipe at some KSEG related things, for example.  There's a lot
of duplication and a large number of vestigal interfaces, types and
declarations.  The duplication is especially worrying as we move
towards 64-bit support, where a stray macro in an underused port can
be terribly hard to track down as the source of corruption or invalid
addresses.

Juli.


More information about the svn-src-user mailing list