diff options
Diffstat (limited to 'include/asm-sparc64/tlbflush.h')
-rw-r--r-- | include/asm-sparc64/tlbflush.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/asm-sparc64/tlbflush.h b/include/asm-sparc64/tlbflush.h new file mode 100644 index 000000000000..3ef9909ac3ac --- /dev/null +++ b/include/asm-sparc64/tlbflush.h | |||
@@ -0,0 +1,41 @@ | |||
1 | #ifndef _SPARC64_TLBFLUSH_H | ||
2 | #define _SPARC64_TLBFLUSH_H | ||
3 | |||
4 | #include <linux/config.h> | ||
5 | #include <linux/mm.h> | ||
6 | #include <asm/mmu_context.h> | ||
7 | |||
8 | /* TLB flush operations. */ | ||
9 | |||
10 | extern void flush_tlb_pending(void); | ||
11 | |||
12 | #define flush_tlb_range(vma,start,end) \ | ||
13 | do { (void)(start); flush_tlb_pending(); } while (0) | ||
14 | #define flush_tlb_page(vma,addr) flush_tlb_pending() | ||
15 | #define flush_tlb_mm(mm) flush_tlb_pending() | ||
16 | |||
17 | extern void __flush_tlb_all(void); | ||
18 | extern void __flush_tlb_page(unsigned long context, unsigned long page, unsigned long r); | ||
19 | |||
20 | extern void __flush_tlb_kernel_range(unsigned long start, unsigned long end); | ||
21 | |||
22 | #ifndef CONFIG_SMP | ||
23 | |||
24 | #define flush_tlb_all() __flush_tlb_all() | ||
25 | #define flush_tlb_kernel_range(start,end) \ | ||
26 | __flush_tlb_kernel_range(start,end) | ||
27 | |||
28 | #else /* CONFIG_SMP */ | ||
29 | |||
30 | extern void smp_flush_tlb_all(void); | ||
31 | extern void smp_flush_tlb_kernel_range(unsigned long start, unsigned long end); | ||
32 | |||
33 | #define flush_tlb_all() smp_flush_tlb_all() | ||
34 | #define flush_tlb_kernel_range(start, end) \ | ||
35 | smp_flush_tlb_kernel_range(start, end) | ||
36 | |||
37 | #endif /* ! CONFIG_SMP */ | ||
38 | |||
39 | extern void flush_tlb_pgtables(struct mm_struct *, unsigned long, unsigned long); | ||
40 | |||
41 | #endif /* _SPARC64_TLBFLUSH_H */ | ||