1 #ifndef _SPARC64_TLBFLUSH_H
2 #define _SPARC64_TLBFLUSH_H
5 #include <asm/mmu_context.h>
7 /* TSB flush operations. */
9 #define TLB_BATCH_NR 192
14 unsigned long vaddrs
[TLB_BATCH_NR
];
17 extern void flush_tsb_kernel_range(unsigned long start
, unsigned long end
);
18 extern void flush_tsb_user(struct tlb_batch
*tb
);
20 /* TLB flush operations. */
22 extern void flush_tlb_pending(void);
24 #define flush_tlb_range(vma,start,end) \
25 do { (void)(start); flush_tlb_pending(); } while (0)
26 #define flush_tlb_page(vma,addr) flush_tlb_pending()
27 #define flush_tlb_mm(mm) flush_tlb_pending()
30 extern void __flush_tlb_all(void);
32 extern void __flush_tlb_kernel_range(unsigned long start
, unsigned long end
);
36 #define flush_tlb_kernel_range(start,end) \
37 do { flush_tsb_kernel_range(start,end); \
38 __flush_tlb_kernel_range(start,end); \
41 #else /* CONFIG_SMP */
43 extern void smp_flush_tlb_kernel_range(unsigned long start
, unsigned long end
);
45 #define flush_tlb_kernel_range(start, end) \
46 do { flush_tsb_kernel_range(start,end); \
47 smp_flush_tlb_kernel_range(start, end); \
50 #endif /* ! CONFIG_SMP */
52 #endif /* _SPARC64_TLBFLUSH_H */