tlb_64.h 874 B

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