Date: Sun, 18 Oct 2009 14:56:33 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r198206 - projects/mips/sys/mips/include Message-ID: <200910181456.n9IEuXkY071886@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910181456.n9IEuXkY071886>