ARM: mm: Add pte_mk{,in}valid()
Hiroshi Doyu [Wed, 25 Sep 2013 12:21:35 +0000 (15:21 +0300)]
Add accessors to make pte {,in}valid.

Bug 1365298

Change-Id: I4070791cd00cca4c17d550a004aa5df9dd4e0065
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/278899
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit 73dceb29e1d69524e79d54d0391f2bec1cf5d573)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

arch/arm/include/asm/pgtable.h

index dbf55b2..0df9a48 100644 (file)
@@ -277,6 +277,8 @@ PTE_BIT_FUNC(mkclean,   &= ~L_PTE_DIRTY);
 PTE_BIT_FUNC(mkdirty,   |= L_PTE_DIRTY);
 PTE_BIT_FUNC(mkold,     &= ~L_PTE_YOUNG);
 PTE_BIT_FUNC(mkyoung,   |= L_PTE_YOUNG);
+PTE_BIT_FUNC(mkinvalid, &= ~L_PTE_VALID);
+PTE_BIT_FUNC(mkvalid,   |= L_PTE_VALID);
 
 static inline pte_t pte_mkspecial(pte_t pte) { return pte; }