cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

tlb.h (625B)


      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#include <asm-generic/tlb.h>
      8
      9#ifdef CONFIG_MMU
     10#include <linux/swap.h>
     11
     12#if defined(CONFIG_CPU_SH4)
     13extern void tlb_wire_entry(struct vm_area_struct *, unsigned long, pte_t);
     14extern void tlb_unwire_entry(void);
     15#else
     16static inline void tlb_wire_entry(struct vm_area_struct *vma ,
     17				  unsigned long addr, pte_t pte)
     18{
     19	BUG();
     20}
     21
     22static inline void tlb_unwire_entry(void)
     23{
     24	BUG();
     25}
     26#endif /* CONFIG_CPU_SH4 */
     27#endif /* CONFIG_MMU */
     28#endif /* __ASSEMBLY__ */
     29#endif /* __ASM_SH_TLB_H */