Skip to contentSkip to conversation

arm/mm: provide pmdp_establish() helper

PATCH In review [email protected] 1 participant 1 message Feb 1, 2018 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 62/119 arm/mm: provide pmdp_establish() helper

From: "Kirill A. Shutemov" <[email protected]>
Subject: arm/mm: provide pmdp_establish() helper

ARM LPAE doesn't have hardware dirty/accessed bits.

generic_pmdp_establish() is the right implementation of pmdp_establish for this case.

---

 arch/arm/include/asm/pgtable-3level.h |    3 +++
 1 file changed, 3 insertions(+)
arch/arm/include/asm/pgtable-3level.h renamed from arch/arm/include/asm/pgtable-3level.h~arm-mm-provide-pmdp_establish-helper +3 -0
diff -puN arch/arm/include/asm/pgtable-3level.h~arm-mm-provide-pmdp_establish-helper arch/arm/include/asm/pgtable-3level.h
@@ -249,6 +249,9 @@ PMD_BIT_FUNC(mkyoung,   |= PMD_SECT_AF);
 #define pfn_pmd(pfn,prot)	(__pmd(((phys_addr_t)(pfn) << PAGE_SHIFT) | pgprot_val(prot)))
 #define mk_pmd(page,prot)	pfn_pmd(page_to_pfn(page),prot)
 
+/* No hardware dirty/accessed bits -- generic_pmdp_establish() fits */
+#define pmdp_establish generic_pmdp_establish
+
 /* represent a notpresent pmd by faulting entry, this is used by pmdp_invalidate */
 static inline pmd_t pmd_mknotpresent(pmd_t pmd)
 {

_