diff --git a/include/asm-x86/xen/page.h b/include/asm-x86/xen/page.h index 01799305f02af98b7e374857ac6664ec9fc347d0..baf3a4dce28cd70908a7bc3c159a10b220bf0379 100644 --- a/include/asm-x86/xen/page.h +++ b/include/asm-x86/xen/page.h @@ -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)