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

Re: page table entries



Hi,

On Fri, May 10, 2002 at 11:00:52AM +0530, Sanket Rathi wrote:

> The problem is i am not able to understand that why the pgd_val, pmd_val
> and pte_val contain 0x63 in last two positions actually they are page
> address so their last 3 position(in hex) should be zero like in io
> address.

You're actually looking at a pte value, not just an address.  The low
12 bits in a pte's contents are not used for addressing but for pte
metadata.  In this case, those bits correspond to:

#define _KERNPG_TABLE	(_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED |
_PAGE_DIRTY)

from linux/include/asm-i386/pgtable.h.

Cheers,
 Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/