Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ASM_SH_TLB_H |
| 2 | #define __ASM_SH_TLB_H |
| 3 | |
Paul Mundt | 959f7d5 | 2007-11-10 20:35:53 +0900 | [diff] [blame] | 4 | #ifdef CONFIG_SUPERH64 |
| 5 | # include "tlb_64.h" |
| 6 | #endif |
| 7 | |
| 8 | #ifndef __ASSEMBLY__ |
| 9 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #define tlb_start_vma(tlb, vma) \ |
| 11 | flush_cache_range(vma, vma->vm_start, vma->vm_end) |
| 12 | |
| 13 | #define tlb_end_vma(tlb, vma) \ |
| 14 | flush_tlb_range(vma, vma->vm_start, vma->vm_end) |
| 15 | |
| 16 | #define __tlb_remove_tlb_entry(tlb, pte, address) do { } while (0) |
| 17 | |
| 18 | /* |
| 19 | * Flush whole TLBs for MM |
| 20 | */ |
| 21 | #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm) |
| 22 | |
| 23 | #include <asm-generic/tlb.h> |
Paul Mundt | 959f7d5 | 2007-11-10 20:35:53 +0900 | [diff] [blame] | 24 | |
| 25 | #endif /* __ASSEMBLY__ */ |
| 26 | #endif /* __ASM_SH_TLB_H */ |