]> err.no Git - linux-2.6/blobdiff - include/asm-avr32/pgtable.h
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
[linux-2.6] / include / asm-avr32 / pgtable.h
index c07bdd10b8911733ce4c3fd7ebb3816db36951f6..c0e5e29417df5454d9b286d32d326010ebcef463 100644 (file)
@@ -32,8 +32,6 @@
 #define USER_PTRS_PER_PGD      (TASK_SIZE / PGDIR_SIZE)
 #define FIRST_USER_ADDRESS     0
 
-#define PTE_PHYS_MASK  0x1ffff000
-
 #ifndef __ASSEMBLY__
 extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
 extern void paging_init(void);
@@ -159,6 +157,7 @@ extern struct page *empty_zero_page;
 #define _PAGE_S(x)     _PAGE_NORMAL(x)
 
 #define PAGE_COPY      _PAGE_P(PAGE_WRITE | PAGE_READ)
+#define PAGE_SHARED    _PAGE_S(PAGE_WRITE | PAGE_READ)
 
 #ifndef __ASSEMBLY__
 /*
@@ -213,6 +212,10 @@ static inline int pte_young(pte_t pte)
 {
        return pte_val(pte) & _PAGE_ACCESSED;
 }
+static inline int pte_special(pte_t pte)
+{
+       return 0;
+}
 
 /*
  * The following only work if pte_present() is not true.
@@ -253,6 +256,10 @@ static inline pte_t pte_mkyoung(pte_t pte)
        set_pte(&pte, __pte(pte_val(pte) | _PAGE_ACCESSED));
        return pte;
 }
+static inline pte_t pte_mkspecial(pte_t pte)
+{
+       return pte;
+}
 
 #define pmd_none(x)    (!pmd_val(x))
 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
@@ -265,7 +272,7 @@ static inline pte_t pte_mkyoung(pte_t pte)
  * trivial.
  */
 #define pages_to_mb(x) ((x) >> (20-PAGE_SHIFT))
-#define pte_page(x)    phys_to_page(pte_val(x) & PTE_PHYS_MASK)
+#define pte_page(x)    (pfn_to_page(pte_pfn(x)))
 
 /*
  * Mark the prot value as uncacheable and unbufferable