[PATCH] bcm43xx: Fix array overrun in bcm43xx_geo_init
[linux-2.6/kmemtrace.git] / include / asm-sparc64 / tlbflush.h
blobe3a7c453b5002a4d0b4e1fa5e28c118038eeddf0
1 #ifndef _SPARC64_TLBFLUSH_H
2 #define _SPARC64_TLBFLUSH_H
4 #include <linux/config.h>
5 #include <linux/mm.h>
6 #include <asm/mmu_context.h>
8 /* TSB flush operations. */
9 struct mmu_gather;
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()
22 /* Local cpu only. */
23 extern void __flush_tlb_all(void);
25 extern void __flush_tlb_kernel_range(unsigned long start, unsigned long end);
27 #ifndef CONFIG_SMP
29 #define flush_tlb_kernel_range(start,end) \
30 do { flush_tsb_kernel_range(start,end); \
31 __flush_tlb_kernel_range(start,end); \
32 } while (0)
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); \
41 } while (0)
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 */