diff options
Diffstat (limited to 'arch/sh/include/asm/tlb.h')
-rw-r--r-- | arch/sh/include/asm/tlb.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/sh/include/asm/tlb.h b/arch/sh/include/asm/tlb.h index da8fe7ab8728..75abb38dffd5 100644 --- a/arch/sh/include/asm/tlb.h +++ b/arch/sh/include/asm/tlb.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #ifdef CONFIG_MMU | 11 | #ifdef CONFIG_MMU |
12 | #include <asm/pgalloc.h> | 12 | #include <asm/pgalloc.h> |
13 | #include <asm/tlbflush.h> | 13 | #include <asm/tlbflush.h> |
14 | #include <asm/mmu_context.h> | ||
14 | 15 | ||
15 | /* | 16 | /* |
16 | * TLB handling. This allows us to remove pages from the page | 17 | * TLB handling. This allows us to remove pages from the page |
@@ -97,6 +98,22 @@ tlb_end_vma(struct mmu_gather *tlb, struct vm_area_struct *vma) | |||
97 | 98 | ||
98 | #define tlb_migrate_finish(mm) do { } while (0) | 99 | #define tlb_migrate_finish(mm) do { } while (0) |
99 | 100 | ||
101 | #if defined(CONFIG_CPU_SH4) || defined(CONFIG_SUPERH64) | ||
102 | extern void tlb_wire_entry(struct vm_area_struct *, unsigned long, pte_t); | ||
103 | extern void tlb_unwire_entry(void); | ||
104 | #else | ||
105 | static inline void tlb_wire_entry(struct vm_area_struct *vma , | ||
106 | unsigned long addr, pte_t pte) | ||
107 | { | ||
108 | BUG(); | ||
109 | } | ||
110 | |||
111 | static inline void tlb_unwire_entry(void) | ||
112 | { | ||
113 | BUG(); | ||
114 | } | ||
115 | #endif | ||
116 | |||
100 | #else /* CONFIG_MMU */ | 117 | #else /* CONFIG_MMU */ |
101 | 118 | ||
102 | #define tlb_start_vma(tlb, vma) do { } while (0) | 119 | #define tlb_start_vma(tlb, vma) do { } while (0) |