Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2010 13:55:08 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        jmallett@FreeBSD.org
Cc:        src-committers@FreeBSD.org, svn-src-user@FreeBSD.org
Subject:   Re: svn commit: r204389 - in user/jmallett/octeon/sys/mips: include mips
Message-ID:  <20100227.135508.999284356098972095.imp@bsdimp.com>
In-Reply-To: <201002270333.o1R3XVJb039720@svn.freebsd.org>
References:  <201002270333.o1R3XVJb039720@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <201002270333.o1R3XVJb039720@svn.freebsd.org>
            Juli Mallett <jmallett@freebsd.org> writes:
: Author: jmallett
: Date: Sat Feb 27 03:33:31 2010
: New Revision: 204389
: URL: http://svn.freebsd.org/changeset/base/204389
: 
: Log:
:   Check for __mips_n32, not ISA_MIPS32, on Octeon to tell whether we have
:   longer-than-pointer bus addresses.  It's the ABI that matters (or at least
:   it's more like the ABI than the ISA that matters.)
: 
: Modified:
:   user/jmallett/octeon/sys/mips/include/_bus.h
:   user/jmallett/octeon/sys/mips/mips/bus_space_generic.c
: 
: Modified: user/jmallett/octeon/sys/mips/include/_bus.h
: ==============================================================================
: --- user/jmallett/octeon/sys/mips/include/_bus.h	Sat Feb 27 03:30:48 2010	(r204388)
: +++ user/jmallett/octeon/sys/mips/include/_bus.h	Sat Feb 27 03:33:31 2010	(r204389)
: @@ -35,10 +35,10 @@
:   * Bus address and size types
:   */
:  #include "opt_cputype.h" 
: -#if !(defined(TARGET_OCTEON) && defined(ISA_MIPS32))
: -typedef uintptr_t bus_addr_t;
: -#else
: +#if defined(TARGET_OCTEON) && defined(__mips_n32)
:  typedef uint64_t bus_addr_t;
: +#else
: +typedef uintptr_t bus_addr_t;
:  #endif
:  typedef uintptr_t bus_size_t;

I'm starting to think that we need this to be subport specific...


: Modified: user/jmallett/octeon/sys/mips/mips/bus_space_generic.c
: ==============================================================================
: --- user/jmallett/octeon/sys/mips/mips/bus_space_generic.c	Sat Feb 27 03:30:48 2010	(r204388)
: +++ user/jmallett/octeon/sys/mips/mips/bus_space_generic.c	Sat Feb 27 03:33:31 2010	(r204389)
: @@ -198,7 +198,7 @@ static struct bus_space generic_space = 
:  
:  /* Ultra-gross kludge */
:  #include "opt_cputype.h"
: -#if defined(TARGET_OCTEON) && defined(ISA_MIPS32)
: +#if defined(TARGET_OCTEON) && defined(__mips_n32)
:  #include <mips/cavium/octeon_pcmap_regs.h>
:  #define rd8(a) oct_read8(a)
:  #define rd16(a) oct_read16(a)

this doesn't seem quite right...  This kludge is also likely to go
away in the future...

Warner



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