blob: a5c4142130f5779a0c363f552d5551a4e7dc3901 [file] [log] [blame]
Sam Ravnborgf5e706a2008-07-17 21:55:51 -07001#ifndef _SPARC_TLBFLUSH_H
2#define _SPARC_TLBFLUSH_H
3
David S. Miller5d83d662012-05-13 20:49:31 -07004#include <asm/cachetlb_32.h>
Sam Ravnborgf5e706a2008-07-17 21:55:51 -07005
David S. Miller5d83d662012-05-13 20:49:31 -07006#define flush_tlb_all() \
7 sparc32_cachetlb_ops->tlb_all()
8#define flush_tlb_mm(mm) \
9 sparc32_cachetlb_ops->tlb_mm(mm)
10#define flush_tlb_range(vma, start, end) \
11 sparc32_cachetlb_ops->tlb_range(vma, start, end)
12#define flush_tlb_page(vma, addr) \
13 sparc32_cachetlb_ops->tlb_page(vma, addr)
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070014
15/*
16 * This is a kludge, until I know better. --zaitcev XXX
17 */
18static inline void flush_tlb_kernel_range(unsigned long start,
19 unsigned long end)
20{
21 flush_tlb_all();
22}
23
24#endif /* _SPARC_TLBFLUSH_H */