On Thu, Jun 17, 2010 at 10:30:06AM +0900, Kenji Kaneshige wrote:
I have a hard time understanding this change. pfn is always a physical
address shifted by PAGE_SHIFT. So a 32-bit pfn supports up to 44-bit
physical addresses. Are your addresses above 44-bits?
I'd rather see PAGE_MASK fixed. Would this work?
#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
-#define PAGE_MASK (~(PAGE_SIZE-1))
+#define PAGE_MASK (~(PAGE_SIZE-1ULL))
--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--