summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/pgtable.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-12-04 03:58:56 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-12-04 03:58:56 +0000
commit1d67e90f19a7acfd9a05dc59678e7d0c5090bd0d (patch)
tree357efc7b93f8f5102110d20d293f41360ec212fc /include/asm-ppc/pgtable.h
parentaea27b2e18d69af87e673972246e66657b4fa274 (diff)
Merge with Linux 2.3.21.
Diffstat (limited to 'include/asm-ppc/pgtable.h')
-rw-r--r--include/asm-ppc/pgtable.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/include/asm-ppc/pgtable.h b/include/asm-ppc/pgtable.h
index ebb5fd934..3a822590b 100644
--- a/include/asm-ppc/pgtable.h
+++ b/include/asm-ppc/pgtable.h
@@ -9,11 +9,28 @@
#include <asm/mmu.h>
#include <asm/page.h>
+#ifndef CONFIG_8xx
extern void local_flush_tlb_all(void);
extern void local_flush_tlb_mm(struct mm_struct *mm);
extern void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
extern void local_flush_tlb_range(struct mm_struct *mm, unsigned long start,
unsigned long end);
+#else /* CONFIG_8xx */
+#define __tlbia() asm volatile ("tlbia" : : )
+
+extern inline void local_flush_tlb_all(void)
+ { __tlbia(); }
+extern inline void local_flush_tlb_mm(struct mm_struct *mm)
+ { __tlbia(); }
+extern inline void local_flush_tlb_page(struct vm_area_struct *vma,
+ unsigned long vmaddr)
+ { __tlbia(); }
+extern inline void local_flush_tlb_range(struct mm_struct *mm,
+ unsigned long start, unsigned long end)
+ { __tlbia(); }
+extern inline void flush_hash_page(unsigned context, unsigned long va)
+ { }
+#endif
#define flush_tlb_all local_flush_tlb_all
#define flush_tlb_mm local_flush_tlb_mm
@@ -636,22 +653,6 @@ extern void kernel_set_cachemode (unsigned long address, unsigned long size,
#define io_remap_page_range remap_page_range
-#ifdef CONFIG_8xx
-#define __tlbia() asm volatile ("tlbia" : : )
-
-extern inline void local_flush_tlb_all(void)
- { __tlbia(); }
-extern inline void local_flush_tlb_mm(struct mm_struct *mm)
- { __tlbia(); }
-extern inline void local_flush_tlb_page(struct vm_area_struct *vma,
- unsigned long vmaddr)
- { __tlbia(); }
-extern inline void local_flush_tlb_range(struct mm_struct *mm,
- unsigned long start, unsigned long end)
- { __tlbia(); }
-extern inline void flush_hash_page(unsigned context, unsigned long va)
- { }
-#endif
#endif __ASSEMBLY__
#endif /* _PPC_PGTABLE_H */