tlb_64.h 913 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _SPARC64_TLB_H
  3. #define _SPARC64_TLB_H
  4. #include <linux/swap.h>
  5. #include <linux/pagemap.h>
  6. #include <asm/pgalloc.h>
  7. #include <asm/tlbflush.h>
  8. #include <asm/mmu_context.h>
  9. #ifdef CONFIG_SMP
  10. void smp_flush_tlb_pending(struct mm_struct *,
  11. unsigned long, unsigned long *);
  12. #endif
  13. #ifdef CONFIG_SMP
  14. void smp_flush_tlb_mm(struct mm_struct *mm);
  15. #define do_flush_tlb_mm(mm) smp_flush_tlb_mm(mm)
  16. #else
  17. #define do_flush_tlb_mm(mm) __flush_tlb_mm(CTX_HWBITS(mm->context), SECONDARY_CONTEXT)
  18. #endif
  19. void __flush_tlb_pending(unsigned long, unsigned long, unsigned long *);
  20. void flush_tlb_pending(void);
  21. #define tlb_start_vma(tlb, vma) do { } while (0)
  22. #define tlb_end_vma(tlb, vma) do { } while (0)
  23. #define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)
  24. #define tlb_flush(tlb) flush_tlb_pending()
  25. #include <asm-generic/tlb.h>
  26. #endif /* _SPARC64_TLB_H */