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:
parent
c94018bcd8
commit
6f181a80f8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/altix/; revision=219654
@ -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)
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user