svn commit: r219654 - projects/altix/sys/ia64/include
Marcel Moolenaar
marcel at FreeBSD.org
Mon Mar 14 23:49:42 UTC 2011
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)
/*
More information about the svn-src-projects
mailing list