tlb.h 625 B

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