]> err.no Git - linux-2.6/blobdiff - include/asm-x86/xen/page.h
xen: use PTE_MASK in pte_mfn()
[linux-2.6] / include / asm-x86 / xen / page.h
index 01799305f02af98b7e374857ac6664ec9fc347d0..baf3a4dce28cd70908a7bc3c159a10b220bf0379 100644 (file)
@@ -127,7 +127,7 @@ static inline void set_phys_to_machine(unsigned long pfn, unsigned long mfn)
 
 static inline unsigned long pte_mfn(pte_t pte)
 {
-       return (pte.pte & ~_PAGE_NX) >> PAGE_SHIFT;
+       return (pte.pte & PTE_MASK) >> PAGE_SHIFT;
 }
 
 static inline pte_t mfn_pte(unsigned long page_nr, pgprot_t pgprot)