1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2a439fe51SSam Ravnborg #ifndef _SPARC_TLBFLUSH_H 3a439fe51SSam Ravnborg #define _SPARC_TLBFLUSH_H 4a439fe51SSam Ravnborg 55d83d666SDavid S. Miller #include <asm/cachetlb_32.h> 6a439fe51SSam Ravnborg 75d83d666SDavid S. Miller #define flush_tlb_all() \ 85d83d666SDavid S. Miller sparc32_cachetlb_ops->tlb_all() 95d83d666SDavid S. Miller #define flush_tlb_mm(mm) \ 105d83d666SDavid S. Miller sparc32_cachetlb_ops->tlb_mm(mm) 115d83d666SDavid S. Miller #define flush_tlb_range(vma, start, end) \ 125d83d666SDavid S. Miller sparc32_cachetlb_ops->tlb_range(vma, start, end) 135d83d666SDavid S. Miller #define flush_tlb_page(vma, addr) \ 145d83d666SDavid S. Miller sparc32_cachetlb_ops->tlb_page(vma, addr) 15a439fe51SSam Ravnborg 16a439fe51SSam Ravnborg /* 17a439fe51SSam Ravnborg * This is a kludge, until I know better. --zaitcev XXX 18a439fe51SSam Ravnborg */ flush_tlb_kernel_range(unsigned long start,unsigned long end)19a439fe51SSam Ravnborgstatic inline void flush_tlb_kernel_range(unsigned long start, 20a439fe51SSam Ravnborg unsigned long end) 21a439fe51SSam Ravnborg { 22a439fe51SSam Ravnborg flush_tlb_all(); 23a439fe51SSam Ravnborg } 24a439fe51SSam Ravnborg 25a439fe51SSam Ravnborg #endif /* _SPARC_TLBFLUSH_H */ 26