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