x86/mm: Ignore A/D bits in pte/pmd/pud_none()
[cascardo/linux.git] / arch / x86 / include / asm / pgtable_types.h
index 7b5efe2..d14d0a5 100644 (file)
                         _PAGE_PKEY_BIT2 | \
                         _PAGE_PKEY_BIT3)
 
+#if defined(CONFIG_X86_64) || defined(CONFIG_X86_PAE)
+#define _PAGE_KNL_ERRATUM_MASK (_PAGE_DIRTY | _PAGE_ACCESSED)
+#else
+#define _PAGE_KNL_ERRATUM_MASK 0
+#endif
+
 #ifdef CONFIG_KMEMCHECK
 #define _PAGE_HIDDEN   (_AT(pteval_t, 1) << _PAGE_BIT_HIDDEN)
 #else