tlbflush.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef __ASM_SH_TLBFLUSH_H
  2. #define __ASM_SH_TLBFLUSH_H
  3. /*
  4. * TLB flushing:
  5. *
  6. * - flush_tlb_all() flushes all processes TLBs
  7. * - flush_tlb_mm(mm) flushes the specified mm context TLB's
  8. * - flush_tlb_page(vma, vmaddr) flushes one page
  9. * - flush_tlb_range(vma, start, end) flushes a range of pages
  10. * - flush_tlb_kernel_range(start, end) flushes a range of kernel pages
  11. */
  12. extern void local_flush_tlb_all(void);
  13. extern void local_flush_tlb_mm(struct mm_struct *mm);
  14. extern void local_flush_tlb_range(struct vm_area_struct *vma,
  15. unsigned long start,
  16. unsigned long end);
  17. extern void local_flush_tlb_page(struct vm_area_struct *vma,
  18. unsigned long page);
  19. extern void local_flush_tlb_kernel_range(unsigned long start,
  20. unsigned long end);
  21. extern void local_flush_tlb_one(unsigned long asid, unsigned long page);
  22. extern void __flush_tlb_global(void);
  23. #ifdef CONFIG_SMP
  24. extern void flush_tlb_all(void);
  25. extern void flush_tlb_mm(struct mm_struct *mm);
  26. extern void flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
  27. unsigned long end);
  28. extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long page);
  29. extern void flush_tlb_kernel_range(unsigned long start, unsigned long end);
  30. extern void flush_tlb_one(unsigned long asid, unsigned long page);
  31. #else
  32. #define flush_tlb_all() local_flush_tlb_all()
  33. #define flush_tlb_mm(mm) local_flush_tlb_mm(mm)
  34. #define flush_tlb_page(vma, page) local_flush_tlb_page(vma, page)
  35. #define flush_tlb_one(asid, page) local_flush_tlb_one(asid, page)
  36. #define flush_tlb_range(vma, start, end) \
  37. local_flush_tlb_range(vma, start, end)
  38. #define flush_tlb_kernel_range(start, end) \
  39. local_flush_tlb_kernel_range(start, end)
  40. #endif /* CONFIG_SMP */
  41. #endif /* __ASM_SH_TLBFLUSH_H */