svn commit: r196215 - projects/mips/sys/mips/include

Warner Losh imp at FreeBSD.org
Fri Aug 14 16:15:18 UTC 2009


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


More information about the svn-src-projects mailing list