• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/sparc/include/asm/
1#ifndef _SPARC_TLBFLUSH_H
2#define _SPARC_TLBFLUSH_H
3
4#include <linux/mm.h>
5// #include <asm/processor.h>
6
7
8#ifdef CONFIG_SMP
9
10BTFIXUPDEF_CALL(void, local_flush_tlb_all, void)
11BTFIXUPDEF_CALL(void, local_flush_tlb_mm, struct mm_struct *)
12BTFIXUPDEF_CALL(void, local_flush_tlb_range, struct vm_area_struct *, unsigned long, unsigned long)
13BTFIXUPDEF_CALL(void, local_flush_tlb_page, struct vm_area_struct *, unsigned long)
14
15#define local_flush_tlb_all() BTFIXUP_CALL(local_flush_tlb_all)()
16#define local_flush_tlb_mm(mm) BTFIXUP_CALL(local_flush_tlb_mm)(mm)
17#define local_flush_tlb_range(vma,start,end) BTFIXUP_CALL(local_flush_tlb_range)(vma,start,end)
18#define local_flush_tlb_page(vma,addr) BTFIXUP_CALL(local_flush_tlb_page)(vma,addr)
19
20extern void smp_flush_tlb_all(void);
21extern void smp_flush_tlb_mm(struct mm_struct *mm);
22extern void smp_flush_tlb_range(struct vm_area_struct *vma,
23				  unsigned long start,
24				  unsigned long end);
25extern void smp_flush_tlb_page(struct vm_area_struct *mm, unsigned long page);
26
27#endif /* CONFIG_SMP */
28
29BTFIXUPDEF_CALL(void, flush_tlb_all, void)
30BTFIXUPDEF_CALL(void, flush_tlb_mm, struct mm_struct *)
31BTFIXUPDEF_CALL(void, flush_tlb_range, struct vm_area_struct *, unsigned long, unsigned long)
32BTFIXUPDEF_CALL(void, flush_tlb_page, struct vm_area_struct *, unsigned long)
33
34#define flush_tlb_all() BTFIXUP_CALL(flush_tlb_all)()
35#define flush_tlb_mm(mm) BTFIXUP_CALL(flush_tlb_mm)(mm)
36#define flush_tlb_range(vma,start,end) BTFIXUP_CALL(flush_tlb_range)(vma,start,end)
37#define flush_tlb_page(vma,addr) BTFIXUP_CALL(flush_tlb_page)(vma,addr)
38
39// #define flush_tlb() flush_tlb_mm(current->active_mm)
40
41static inline void flush_tlb_kernel_range(unsigned long start,
42					  unsigned long end)
43{
44	flush_tlb_all();
45}
46
47#endif /* _SPARC_TLBFLUSH_H */
48