powerpc: Untangle fixmap.h and pgtable.h and mmu.h
[linux-2.6-block.git] / arch / powerpc / include / asm / nohash / 64 / pgtable.h
index 5cd9acf58a7db92945dab1dff92e90e9c0196821..dee3fc654d4011681bf9ea61cc93b6c41e5215a2 100644 (file)
@@ -57,6 +57,7 @@
 #define IOREMAP_START  (ioremap_bot)
 #define IOREMAP_END    (KERN_IO_START + KERN_IO_SIZE - FIXADDR_SIZE)
 #define FIXADDR_SIZE   SZ_32M
+#define FIXADDR_TOP    (IOREMAP_END + FIXADDR_SIZE)
 
 /*
  * Defines the address of the vmemap area, in its own region on
@@ -197,7 +198,7 @@ static inline int __ptep_test_and_clear_young(struct mm_struct *mm,
 {
        unsigned long old;
 
-       if (pte_young(*ptep))
+       if (!pte_young(*ptep))
                return 0;
        old = pte_update(mm, addr, ptep, _PAGE_ACCESSED, 0, 0);
        return (old & _PAGE_ACCESSED) != 0;
@@ -269,8 +270,6 @@ static inline void __ptep_set_access_flags(struct vm_area_struct *vma,
        flush_tlb_page(vma, address);
 }
 
-#define pte_ERROR(e) \
-       pr_err("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))
 #define pmd_ERROR(e) \
        pr_err("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e))
 #define pgd_ERROR(e) \