tlb.h 786 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) 2004-2006 Atmel Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ASM_AVR32_TLB_H
  9. #define __ASM_AVR32_TLB_H
  10. #define tlb_start_vma(tlb, vma) \
  11. flush_cache_range(vma, vma->vm_start, vma->vm_end)
  12. #define tlb_end_vma(tlb, vma) \
  13. flush_tlb_range(vma, vma->vm_start, vma->vm_end)
  14. #define __tlb_remove_tlb_entry(tlb, pte, address) do { } while(0)
  15. /*
  16. * Flush whole TLB for MM
  17. */
  18. #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm)
  19. #include <asm-generic/tlb.h>
  20. /*
  21. * For debugging purposes
  22. */
  23. extern void show_dtlb_entry(unsigned int index);
  24. extern void dump_dtlb(void);
  25. #endif /* __ASM_AVR32_TLB_H */