1 #ifndef _SPARC64_TLBFLUSH_H
2 #define _SPARC64_TLBFLUSH_H
4 #include <linux/config.h>
6 #include <asm/mmu_context.h>
8 /* TSB flush operations. */
10 extern void flush_tsb_kernel_range(unsigned long start
, unsigned long end
);
11 extern void flush_tsb_user(struct mmu_gather
*mp
);
13 /* TLB flush operations. */
15 extern void flush_tlb_pending(void);
17 #define flush_tlb_range(vma,start,end) \
18 do { (void)(start); flush_tlb_pending(); } while (0)
19 #define flush_tlb_page(vma,addr) flush_tlb_pending()
20 #define flush_tlb_mm(mm) flush_tlb_pending()
23 extern void __flush_tlb_all(void);
25 extern void __flush_tlb_kernel_range(unsigned long start
, unsigned long end
);
29 #define flush_tlb_kernel_range(start,end) \
30 do { flush_tsb_kernel_range(start,end); \
31 __flush_tlb_kernel_range(start,end); \
34 #else /* CONFIG_SMP */
36 extern void smp_flush_tlb_kernel_range(unsigned long start
, unsigned long end
);
38 #define flush_tlb_kernel_range(start, end) \
39 do { flush_tsb_kernel_range(start,end); \
40 smp_flush_tlb_kernel_range(start, end); \
43 #endif /* ! CONFIG_SMP */
45 static inline void flush_tlb_pgtables(struct mm_struct
*mm
, unsigned long start
, unsigned long end
)
47 /* We don't use virtual page tables for TLB miss processing
48 * any more. Nowadays we use the TSB.
52 #endif /* _SPARC64_TLBFLUSH_H */