ARC: mm: don't loose PTE_SPECIAL in pte_modify()
[firefly-linux-kernel-4.4.55.git] / arch / arc / include / asm / pgtable.h
index 57af2f05ae8459e2ee2427d231370269894ba95f..3cab04255ae0a4e9db1599ae348d6f1360acd970 100644 (file)
 #define ___DEF (_PAGE_PRESENT | _PAGE_CACHEABLE)
 
 /* Set of bits not changed in pte_modify */
-#define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY)
+#define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY | _PAGE_SPECIAL)
 
 /* More Abbrevaited helpers */
 #define PAGE_U_NONE     __pgprot(___DEF)