162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _SPARC_TLBFLUSH_H 362306a36Sopenharmony_ci#define _SPARC_TLBFLUSH_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <asm/cachetlb_32.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#define flush_tlb_all() \ 862306a36Sopenharmony_ci sparc32_cachetlb_ops->tlb_all() 962306a36Sopenharmony_ci#define flush_tlb_mm(mm) \ 1062306a36Sopenharmony_ci sparc32_cachetlb_ops->tlb_mm(mm) 1162306a36Sopenharmony_ci#define flush_tlb_range(vma, start, end) \ 1262306a36Sopenharmony_ci sparc32_cachetlb_ops->tlb_range(vma, start, end) 1362306a36Sopenharmony_ci#define flush_tlb_page(vma, addr) \ 1462306a36Sopenharmony_ci sparc32_cachetlb_ops->tlb_page(vma, addr) 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci/* 1762306a36Sopenharmony_ci * This is a kludge, until I know better. --zaitcev XXX 1862306a36Sopenharmony_ci */ 1962306a36Sopenharmony_cistatic inline void flush_tlb_kernel_range(unsigned long start, 2062306a36Sopenharmony_ci unsigned long end) 2162306a36Sopenharmony_ci{ 2262306a36Sopenharmony_ci flush_tlb_all(); 2362306a36Sopenharmony_ci} 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#endif /* _SPARC_TLBFLUSH_H */ 26