Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef __ASM_SH_TLB_H |
| 3 | #define __ASM_SH_TLB_H |
| 4 | |
| 5 | #ifdef CONFIG_SUPERH64 |
| 6 | # include <asm/tlb_64.h> |
| 7 | #endif |
| 8 | |
| 9 | #ifndef __ASSEMBLY__ |
| 10 | #include <linux/pagemap.h> |
| 11 | |
| 12 | #ifdef CONFIG_MMU |
| 13 | #include <linux/swap.h> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 14 | |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 15 | #include <asm-generic/tlb.h> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 16 | |
| 17 | #if defined(CONFIG_CPU_SH4) || defined(CONFIG_SUPERH64) |
| 18 | extern void tlb_wire_entry(struct vm_area_struct *, unsigned long, pte_t); |
| 19 | extern void tlb_unwire_entry(void); |
| 20 | #else |
| 21 | static inline void tlb_wire_entry(struct vm_area_struct *vma , |
| 22 | unsigned long addr, pte_t pte) |
| 23 | { |
| 24 | BUG(); |
| 25 | } |
| 26 | |
| 27 | static inline void tlb_unwire_entry(void) |
| 28 | { |
| 29 | BUG(); |
| 30 | } |
| 31 | #endif |
| 32 | |
| 33 | #else /* CONFIG_MMU */ |
| 34 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 35 | #include <asm-generic/tlb.h> |
| 36 | |
| 37 | #endif /* CONFIG_MMU */ |
| 38 | #endif /* __ASSEMBLY__ */ |
| 39 | #endif /* __ASM_SH_TLB_H */ |