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

Warner Losh imp at FreeBSD.org
Sun Oct 18 14:56:33 UTC 2009


Author: imp
Date: Sun Oct 18 14:56:33 2009
New Revision: 198206
URL: http://svn.freebsd.org/changeset/base/198206

Log:
  _ALIGN has to return u_long, since pointers don't fit into u_int in
  64-bit mips.

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

Modified: projects/mips/sys/mips/include/_align.h
==============================================================================
--- projects/mips/sys/mips/include/_align.h	Sun Oct 18 14:55:55 2009	(r198205)
+++ projects/mips/sys/mips/include/_align.h	Sun Oct 18 14:56:33 2009	(r198206)
@@ -44,10 +44,10 @@
 
 /*
  * Round p (pointer or byte index) up to a correctly-aligned value for all
- * data types (int, long, ...).	  The result is u_int and must be cast to
+ * data types (int, long, ...).	  The result is u_long and must be cast to
  * any desired pointer type.
  */
 #define	_ALIGNBYTES	7
-#define	_ALIGN(p)	(((u_int)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
+#define	_ALIGN(p)	(((u_long)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
 
 #endif /* !_MIPS_INCLUDE__ALIGN_H_ */


More information about the svn-src-projects mailing list