From owner-svn-src-projects@FreeBSD.ORG Sun Oct 18 14:56:33 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B99EA1065693; Sun, 18 Oct 2009 14:56:33 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AA5F88FC1E; Sun, 18 Oct 2009 14:56:33 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n9IEuXg0071888; Sun, 18 Oct 2009 14:56:33 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n9IEuXkY071886; Sun, 18 Oct 2009 14:56:33 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <200910181456.n9IEuXkY071886@svn.freebsd.org> From: Warner Losh Date: Sun, 18 Oct 2009 14:56:33 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r198206 - projects/mips/sys/mips/include X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 14:56:33 -0000 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_ */