ARM: mm: correct pte_same behaviour for LPAE.
authorSteve Capper <steve.capper@arm.com>
Fri, 8 Feb 2013 15:01:18 +0000 (17:01 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 10 Feb 2013 17:57:09 +0000 (19:57 +0200)
commitb7e02d3ef168255d4375d4ea406a843dbb39581a
tree5a007f820cf67be3ef9c080eb91affff04806364
parent5b9182ed0aa7cb46a397b291d3db8e402c474bca
ARM: mm: correct pte_same behaviour for LPAE.

For 3 levels of paging the PTE_EXT_NG bit will be set for user
address ptes that are written to a page table but not for ptes
created with mk_pte.

This can cause some comparison tests made by pte_same to fail
spuriously and lead to other problems.

To correct this behaviour, we mask off PTE_EXT_NG for any pte that
is present before running the comparison.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Steve Capper <steve.capper@arm.com>
arch/arm/include/asm/pgtable-3level.h