Question regarding x86_64 __PHYSICAL_MASK_SHIFT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




 Hello, Andi.

In include/asm-x86_64/page.h, __VIRTUAL_MASK_SHIFT is defined as 48 bits which is the size of virtual address space on current x86_64 machines as used as such. OTOH, __PHYSICAL_MASK_SHIFT is defined as 46 and used as mask shift for physical page address (i.e. physaddr >> 12).

In addition to being a bit confusing due to similar names but different meanings, this means that we assume processors can physically address 58 (46 + 12) bits, but both amd64 and IA-32e manuals say that current architectural limit is 52 bits and bits 52-62 are reserved in all page table entries. This currently (and in foreseeable future) doesn't cause any problem but it's still a bit weird.

 Am I missing something?

 Thanks.

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux