tlb.h 963 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (C) 2010 Tobias Klauser <tklauser@distanz.ch>
  3. * Copyright (C) 2009 Wind River Systems Inc
  4. * Copyright (C) 2004 Microtronix Datacom Ltd.
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. */
  10. #ifndef _ASM_NIOS2_TLB_H
  11. #define _ASM_NIOS2_TLB_H
  12. #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm)
  13. extern void set_mmu_pid(unsigned long pid);
  14. /*
  15. * NiosII doesn't need any special per-pte or per-vma handling, except
  16. * we need to flush cache for the area to be unmapped.
  17. */
  18. #define tlb_start_vma(tlb, vma) \
  19. do { \
  20. if (!tlb->fullmm) \
  21. flush_cache_range(vma, vma->vm_start, vma->vm_end); \
  22. } while (0)
  23. #define tlb_end_vma(tlb, vma) do { } while (0)
  24. #define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)
  25. #include <linux/pagemap.h>
  26. #include <asm-generic/tlb.h>
  27. #endif /* _ASM_NIOS2_TLB_H */