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.
This commit is contained in:
Marcel Moolenaar 2011-03-14 23:49:41 +00:00
parent c94018bcd8
commit 6f181a80f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/altix/; revision=219654

View File

@ -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)
/*