xref: /OK3568_Linux_fs/kernel/arch/sh/include/asm/tlb.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __ASM_SH_TLB_H
3*4882a593Smuzhiyun #define __ASM_SH_TLB_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #ifndef __ASSEMBLY__
6*4882a593Smuzhiyun #include <linux/pagemap.h>
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifdef CONFIG_MMU
9*4882a593Smuzhiyun #include <linux/swap.h>
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #include <asm-generic/tlb.h>
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #if defined(CONFIG_CPU_SH4)
14*4882a593Smuzhiyun extern void tlb_wire_entry(struct vm_area_struct *, unsigned long, pte_t);
15*4882a593Smuzhiyun extern void tlb_unwire_entry(void);
16*4882a593Smuzhiyun #else
tlb_wire_entry(struct vm_area_struct * vma,unsigned long addr,pte_t pte)17*4882a593Smuzhiyun static inline void tlb_wire_entry(struct vm_area_struct *vma ,
18*4882a593Smuzhiyun 				  unsigned long addr, pte_t pte)
19*4882a593Smuzhiyun {
20*4882a593Smuzhiyun 	BUG();
21*4882a593Smuzhiyun }
22*4882a593Smuzhiyun 
tlb_unwire_entry(void)23*4882a593Smuzhiyun static inline void tlb_unwire_entry(void)
24*4882a593Smuzhiyun {
25*4882a593Smuzhiyun 	BUG();
26*4882a593Smuzhiyun }
27*4882a593Smuzhiyun #endif
28*4882a593Smuzhiyun 
29*4882a593Smuzhiyun #else /* CONFIG_MMU */
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun #include <asm-generic/tlb.h>
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #endif /* CONFIG_MMU */
34*4882a593Smuzhiyun #endif /* __ASSEMBLY__ */
35*4882a593Smuzhiyun #endif /* __ASM_SH_TLB_H */
36