tlbflush.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _CRIS_TLBFLUSH_H
  2. #define _CRIS_TLBFLUSH_H
  3. #include <linux/config.h>
  4. #include <linux/mm.h>
  5. #include <asm/processor.h>
  6. #include <asm/pgtable.h>
  7. #include <asm/pgalloc.h>
  8. /*
  9. * TLB flushing (implemented in arch/cris/mm/tlb.c):
  10. *
  11. * - flush_tlb() flushes the current mm struct TLBs
  12. * - flush_tlb_all() flushes all processes TLBs
  13. * - flush_tlb_mm(mm) flushes the specified mm context TLB's
  14. * - flush_tlb_page(vma, vmaddr) flushes one page
  15. * - flush_tlb_range(mm, start, end) flushes a range of pages
  16. *
  17. */
  18. extern void flush_tlb_all(void);
  19. extern void flush_tlb_mm(struct mm_struct *mm);
  20. extern void flush_tlb_page(struct vm_area_struct *vma,
  21. unsigned long addr);
  22. extern void flush_tlb_range(struct vm_area_struct *vma,
  23. unsigned long start,
  24. unsigned long end);
  25. extern inline void flush_tlb_pgtables(struct mm_struct *mm,
  26. unsigned long start, unsigned long end)
  27. {
  28. /* CRIS does not keep any page table caches in TLB */
  29. }
  30. extern inline void flush_tlb(void)
  31. {
  32. flush_tlb_mm(current->mm);
  33. }
  34. #define flush_tlb_kernel_range(start, end) flush_tlb_all()
  35. #endif /* _CRIS_TLBFLUSH_H */