xref: /kernel/linux/linux-5.10/arch/sparc/include/asm/tlbflush_32.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/sparc/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _SPARC_TLBFLUSH_H
38c2ecf20Sopenharmony_ci#define _SPARC_TLBFLUSH_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <asm/cachetlb_32.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#define flush_tlb_all() \
88c2ecf20Sopenharmony_ci	sparc32_cachetlb_ops->tlb_all()
98c2ecf20Sopenharmony_ci#define flush_tlb_mm(mm) \
108c2ecf20Sopenharmony_ci	sparc32_cachetlb_ops->tlb_mm(mm)
118c2ecf20Sopenharmony_ci#define flush_tlb_range(vma, start, end) \
128c2ecf20Sopenharmony_ci	sparc32_cachetlb_ops->tlb_range(vma, start, end)
138c2ecf20Sopenharmony_ci#define flush_tlb_page(vma, addr) \
148c2ecf20Sopenharmony_ci	sparc32_cachetlb_ops->tlb_page(vma, addr)
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci/*
178c2ecf20Sopenharmony_ci * This is a kludge, until I know better. --zaitcev XXX
188c2ecf20Sopenharmony_ci */
198c2ecf20Sopenharmony_cistatic inline void flush_tlb_kernel_range(unsigned long start,
208c2ecf20Sopenharmony_ci					  unsigned long end)
218c2ecf20Sopenharmony_ci{
228c2ecf20Sopenharmony_ci	flush_tlb_all();
238c2ecf20Sopenharmony_ci}
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif /* _SPARC_TLBFLUSH_H */
26

Indexes created Thu Nov 07 10:32:03 CST 2024