x86 pages, page tables, and page table entries

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

 



Hi,

I am experiencing something strange about pages and ptes on x86. I am
calling alloc_pages() with order = 1 (should be 2 pages). This returns
a struct page with virtual address c7800000 (returned by
page_address()). Now I call lookup_address() on the same address, and
the pte is located at c0438c78. So far, so good. But if I try to call
lookup_address() on the next page (i.e. address 7801000), this returns
a pte which is located at c7800004. How can this happen? This would
mean that the pte is inside the previous page, which is nonsense,
since it was just returned to me by the page allocator.

Does anybody know immediately what I am doing wrong here? Help is
appreciated. Thanks.

Kind regards,
Vegard Nossum

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux