diff options
-rw-r--r-- | arch/um/include/asm/pgtable.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/um/include/asm/pgtable.h b/arch/um/include/asm/pgtable.h index 6a3f9845743e..294254e13a35 100644 --- a/arch/um/include/asm/pgtable.h +++ b/arch/um/include/asm/pgtable.h | |||
@@ -273,6 +273,12 @@ static inline void set_pte(pte_t *pteptr, pte_t pteval) | |||
273 | } | 273 | } |
274 | #define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval) | 274 | #define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval) |
275 | 275 | ||
276 | #define __HAVE_ARCH_PTE_SAME | ||
277 | static inline int pte_same(pte_t pte_a, pte_t pte_b) | ||
278 | { | ||
279 | return !((pte_val(pte_a) ^ pte_val(pte_b)) & ~_PAGE_NEWPAGE); | ||
280 | } | ||
281 | |||
276 | /* | 282 | /* |
277 | * Conversion functions: convert a page and protection to a page entry, | 283 | * Conversion functions: convert a page and protection to a page entry, |
278 | * and a page entry and page directory to the page they refer to. | 284 | * and a page entry and page directory to the page they refer to. |