|
@@ -151,18 +151,11 @@ static inline int pte_same(pte_t a, pte_t b)
|
|
return a.pte_low == b.pte_low && a.pte_high == b.pte_high;
|
|
return a.pte_low == b.pte_low && a.pte_high == b.pte_high;
|
|
}
|
|
}
|
|
|
|
|
|
-#define pte_page(x) pfn_to_page(pte_pfn(x))
|
|
|
|
-
|
|
|
|
static inline int pte_none(pte_t pte)
|
|
static inline int pte_none(pte_t pte)
|
|
{
|
|
{
|
|
return !pte.pte_low && !pte.pte_high;
|
|
return !pte.pte_low && !pte.pte_high;
|
|
}
|
|
}
|
|
|
|
|
|
-static inline unsigned long pte_pfn(pte_t pte)
|
|
|
|
-{
|
|
|
|
- return (pte_val(pte) & PTE_PFN_MASK) >> PAGE_SHIFT;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* Bits 0, 6 and 7 are taken in the low part of the pte,
|
|
* Bits 0, 6 and 7 are taken in the low part of the pte,
|
|
* put the 32 bits of offset into the high part.
|
|
* put the 32 bits of offset into the high part.
|