Re: Question regarding x86_64 __PHYSICAL_MASK_SHIFT

From: Andi Kleen
Date: Tue Oct 04 2005 - 14:27:31 EST


On Tuesday 04 October 2005 21:19, Tejun Heo wrote:

> Hmmm.. but, currently
>
> * PHYSICAL_PAGE_MASK == (~(PAGE_SIZE-1)&(__PHYSICAL_MASK << PAGE_SHIFT)
> == (0xffffffff_fffff000 & (0x00003fff_ffffffff << 12)
> == 0x03ffffff_fffff000
> while it actually should be 0x00003fff_fffff000

Right. Fixed now

> * PTE_FILE_MAX_BITS == __PHYSICAL_MASK_SHIFT == 46, but only 40bits are
> available in page table entries.

The non linear mapping format is independent from the MMU, the number
is pretty much arbitary, but it is consistent to make it the same as
other ptes for easier sanity checking.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/