|
@@ -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)
|
|
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)
|
|
static inline pte_t mfn_pte(unsigned long page_nr, pgprot_t pgprot)
|