1 #ifndef _SPARC_TLBFLUSH_H
2 #define _SPARC_TLBFLUSH_H
5 // #include <asm/processor.h>
10 BTFIXUPDEF_CALL(void, local_flush_tlb_all
, void)
11 BTFIXUPDEF_CALL(void, local_flush_tlb_mm
, struct mm_struct
*)
12 BTFIXUPDEF_CALL(void, local_flush_tlb_range
, struct vm_area_struct
*, unsigned long, unsigned long)
13 BTFIXUPDEF_CALL(void, local_flush_tlb_page
, struct vm_area_struct
*, unsigned long)
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)
20 extern void smp_flush_tlb_all(void);
21 extern void smp_flush_tlb_mm(struct mm_struct
*mm
);
22 extern void smp_flush_tlb_range(struct vm_area_struct
*vma
,
25 extern void smp_flush_tlb_page(struct vm_area_struct
*mm
, unsigned long page
);
27 #endif /* CONFIG_SMP */
29 BTFIXUPDEF_CALL(void, flush_tlb_all
, void)
30 BTFIXUPDEF_CALL(void, flush_tlb_mm
, struct mm_struct
*)
31 BTFIXUPDEF_CALL(void, flush_tlb_range
, struct vm_area_struct
*, unsigned long, unsigned long)
32 BTFIXUPDEF_CALL(void, flush_tlb_page
, struct vm_area_struct
*, unsigned long)
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)
39 // #define flush_tlb() flush_tlb_mm(current->active_mm)
41 static inline void flush_tlb_kernel_range(unsigned long start
,
47 #endif /* _SPARC_TLBFLUSH_H */