tlb.h 555 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
  3. #ifndef __ASM_CSKY_TLB_H
  4. #define __ASM_CSKY_TLB_H
  5. #include <asm/cacheflush.h>
  6. #define tlb_start_vma(tlb, vma) \
  7. do { \
  8. 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 { \
  13. if (!tlb->fullmm) \
  14. flush_tlb_range(vma, vma->vm_start, vma->vm_end); \
  15. } while (0)
  16. #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm)
  17. #include <asm-generic/tlb.h>
  18. #endif /* __ASM_CSKY_TLB_H */