Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2011 23:49:42 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r219654 - projects/altix/sys/ia64/include
Message-ID:  <201103142349.p2ENngsC015292@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Mon Mar 14 23:49:41 2011
New Revision: 219654
URL: http://svn.freebsd.org/changeset/base/219654

Log:
  Don't define IA64_PBVM_PAGE_SIZE as 1U shifted to the left by some amount.
  The compiler seems to assume it's a 32-bit integral and rounding to the
  page size using the standard expression (((u_long)(x) + mask) & ~mask),
  results in a 32-bit value. Dropping the 'U' suffix is enough to have the
  compiler treat the expression as a 64-bit integral.

Modified:
  projects/altix/sys/ia64/include/vmparam.h

Modified: projects/altix/sys/ia64/include/vmparam.h
==============================================================================
--- projects/altix/sys/ia64/include/vmparam.h	Mon Mar 14 23:30:14 2011	(r219653)
+++ projects/altix/sys/ia64/include/vmparam.h	Mon Mar 14 23:49:41 2011	(r219654)
@@ -179,7 +179,7 @@
 		(IA64_RR_BASE(IA64_PBVM_RR + 1) - IA64_PBVM_PGTBL_MAXSZ)
 
 #define	IA64_PBVM_PAGE_SHIFT	16	/* 64KB */
-#define	IA64_PBVM_PAGE_SIZE	(1U << IA64_PBVM_PAGE_SHIFT)
+#define	IA64_PBVM_PAGE_SIZE	(1 << IA64_PBVM_PAGE_SHIFT)
 #define	IA64_PBVM_PAGE_MASK	(IA64_PBVM_PAGE_SIZE - 1)
 
 /*



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