Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 2009 16:15:18 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r196215 - projects/mips/sys/mips/include
Message-ID:  <200908141615.n7EGFI6i041376@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Aug 14 16:15:18 2009
New Revision: 196215
URL: http://svn.freebsd.org/changeset/base/196215

Log:
  (u_int) is the wrong type here.  Use unsigned long instead, even
  though that's only less wrong...
  
  # This gets the kernel building again to the point it was at before
  # the last IFC for the OCTEON1 kernel config.

Modified:
  projects/mips/sys/mips/include/param.h

Modified: projects/mips/sys/mips/include/param.h
==============================================================================
--- projects/mips/sys/mips/include/param.h	Fri Aug 14 13:26:50 2009	(r196214)
+++ projects/mips/sys/mips/include/param.h	Fri Aug 14 16:15:18 2009	(r196215)
@@ -83,7 +83,7 @@
  * any desired pointer type.
  */
 #define	_ALIGNBYTES	7
-#define	_ALIGN(p)	(((u_int)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
+#define	_ALIGN(p)	(((unsigned long)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
 
 #define	ALIGNBYTES	_ALIGNBYTES
 #define	ALIGN(p)	_ALIGN(p)
@@ -93,7 +93,7 @@
  * This does not reflect the optimal alignment, just the possibility
  * (within reasonable limits). 
  */
-#define	ALIGNED_POINTER(p, t)	((((unsigned)(p)) & (sizeof (t) - 1)) == 0)
+#define	ALIGNED_POINTER(p, t)	((((unsigned long)(p)) & (sizeof (t) - 1)) == 0)
 
 /*
  * CACHE_LINE_SIZE is the compile-time maximum cache line size for an



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