tlb.h 633 B

12345678910111213141516171819202122232425262728
  1. #ifndef _PARISC_TLB_H
  2. #define _PARISC_TLB_H
  3. #define tlb_flush(tlb) \
  4. do { if ((tlb)->fullmm) \
  5. flush_tlb_mm((tlb)->mm);\
  6. } while (0)
  7. #define tlb_start_vma(tlb, vma) \
  8. do { if (!(tlb)->fullmm) \
  9. flush_cache_range(vma, vma->vm_start, vma->vm_end); \
  10. } while (0)
  11. #define tlb_end_vma(tlb, vma) \
  12. do { if (!(tlb)->fullmm) \
  13. flush_tlb_range(vma, vma->vm_start, vma->vm_end); \
  14. } while (0)
  15. #define __tlb_remove_tlb_entry(tlb, pte, address) \
  16. do { } while (0)
  17. #include <asm-generic/tlb.h>
  18. #define __pmd_free_tlb(tlb, pmd, addr) pmd_free((tlb)->mm, pmd)
  19. #define __pte_free_tlb(tlb, pte, addr) pte_free((tlb)->mm, pte)
  20. #endif