]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86/page.h
x86: fix pte_flags() to only return flags, fix lguest (updated)
[linux-2.6-omap-h63xx.git] / include / asm-x86 / page.h
index 28d7b4533b1a63fc1c54dc9f69a0db326e3a16f7..05d9bea2bfd5f37386a040649cc0c5c4c7585df4 100644 (file)
@@ -144,6 +144,11 @@ static inline pteval_t native_pte_val(pte_t pte)
        return pte.pte;
 }
 
+static inline pteval_t native_pte_flags(pte_t pte)
+{
+       return native_pte_val(pte) & ~PTE_MASK;
+}
+
 #define pgprot_val(x)  ((x).pgprot)
 #define __pgprot(x)    ((pgprot_t) { (x) } )
 
@@ -165,7 +170,7 @@ static inline pteval_t native_pte_val(pte_t pte)
 #endif
 
 #define pte_val(x)     native_pte_val(x)
-#define pte_flags(x)   native_pte_val(x)
+#define pte_flags(x)   native_pte_flags(x)
 #define __pte(x)       native_make_pte(x)
 
 #endif /* CONFIG_PARAVIRT */