]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86/pgtable.h
x86: add PTE_FLAGS_MASK
[linux-2.6-omap-h63xx.git] / include / asm-x86 / pgtable.h
index 2b1746c923705b81dc31cb76c7cbb3602deb66ed..3e5dbc4195f4f71fc61ee906fbcc8f8dec0beb79 100644 (file)
@@ -286,7 +286,7 @@ static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
        return __pgprot(preservebits | addbits);
 }
 
-#define pte_pgprot(x) __pgprot(pte_flags(x) & ~PTE_PFN_MASK)
+#define pte_pgprot(x) __pgprot(pte_flags(x) & PTE_FLAGS_MASK)
 
 #define canon_pgprot(p) __pgprot(pgprot_val(p) & __supported_pte_mask)