Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2009 15:59:41 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r199594 - projects/mips/sys/mips/octeon1
Message-ID:  <200911201559.nAKFxfV7048995@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Nov 20 15:59:41 2009
New Revision: 199594
URL: http://svn.freebsd.org/changeset/base/199594

Log:
  If we're ompiling ISA_MIPS32, then use the 32-bit address-size
  definitions.

Modified:
  projects/mips/sys/mips/octeon1/octeon_pcmap_regs.h

Modified: projects/mips/sys/mips/octeon1/octeon_pcmap_regs.h
==============================================================================
--- projects/mips/sys/mips/octeon1/octeon_pcmap_regs.h	Fri Nov 20 15:57:45 2009	(r199593)
+++ projects/mips/sys/mips/octeon1/octeon_pcmap_regs.h	Fri Nov 20 15:59:41 2009	(r199594)
@@ -6,6 +6,7 @@
 #ifndef __OCTEON_PCMAP_REGS_H__
 #define __OCTEON_PCMAP_REGS_H__
 
+#include "opt_cputype.h" 
 
 #define OCTEON_CACHE_LINE_SIZE	0x80	/* 128 bytes cache line size */
 #define IS_OCTEON_ALIGNED(p)	(!((u_long)(p) & 0x7f))
@@ -549,7 +550,7 @@ typedef enum {
 
 /*  PTR_SIZE == sizeof(uint32_t)  */
 
-#if 0
+#ifdef ISA_MIPS32
 #define mipsx_addr_size				uint32_t	// u_int64
 #define MIPSX_ADDR_SIZE_KSEGX_BIT_SHIFT		30		// 62
 #define MIPSX_ADDR_SIZE_KSEGX_MASK_REMOVED	0x1fffffff	// 0x1fffffff



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