~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/sh/include/asm/tlb_64.h

Version: ~ [ linux-5.13-rc7 ] ~ [ linux-5.12.12 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.45 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.127 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.195 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.237 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.273 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.273 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * include/asm-sh/tlb_64.h
  3  *
  4  * Copyright (C) 2003  Paul Mundt
  5  *
  6  * This file is subject to the terms and conditions of the GNU General Public
  7  * License.  See the file "COPYING" in the main directory of this archive
  8  * for more details.
  9  */
 10 #ifndef __ASM_SH_TLB_64_H
 11 #define __ASM_SH_TLB_64_H
 12 
 13 /* ITLB defines */
 14 #define ITLB_FIXED      0x00000000      /* First fixed ITLB, see head.S */
 15 #define ITLB_LAST_VAR_UNRESTRICTED      0x000003F0      /* Last ITLB */
 16 
 17 /* DTLB defines */
 18 #define DTLB_FIXED      0x00800000      /* First fixed DTLB, see head.S */
 19 #define DTLB_LAST_VAR_UNRESTRICTED      0x008003F0      /* Last DTLB */
 20 
 21 #ifndef __ASSEMBLY__
 22 
 23 /**
 24  * for_each_dtlb_entry - Iterate over free (non-wired) DTLB entries
 25  *
 26  * @tlb:        TLB entry
 27  */
 28 #define for_each_dtlb_entry(tlb)                \
 29         for (tlb  = cpu_data->dtlb.first;       \
 30              tlb <= cpu_data->dtlb.last;        \
 31              tlb += cpu_data->dtlb.step)
 32 
 33 /**
 34  * for_each_itlb_entry - Iterate over free (non-wired) ITLB entries
 35  *
 36  * @tlb:        TLB entry
 37  */
 38 #define for_each_itlb_entry(tlb)                \
 39         for (tlb  = cpu_data->itlb.first;       \
 40              tlb <= cpu_data->itlb.last;        \
 41              tlb += cpu_data->itlb.step)
 42 
 43 /**
 44  * __flush_tlb_slot - Flushes TLB slot @slot.
 45  *
 46  * @slot:       Address of TLB slot.
 47  */
 48 static inline void __flush_tlb_slot(unsigned long long slot)
 49 {
 50         __asm__ __volatile__ ("putcfg %0, 0, r63\n" : : "r" (slot));
 51 }
 52 
 53 #ifdef CONFIG_MMU
 54 /* arch/sh64/mm/tlb.c */
 55 int sh64_tlb_init(void);
 56 unsigned long long sh64_next_free_dtlb_entry(void);
 57 unsigned long long sh64_get_wired_dtlb_entry(void);
 58 int sh64_put_wired_dtlb_entry(unsigned long long entry);
 59 void sh64_setup_tlb_slot(unsigned long long config_addr, unsigned long eaddr,
 60                          unsigned long asid, unsigned long paddr);
 61 void sh64_teardown_tlb_slot(unsigned long long config_addr);
 62 #else
 63 #define sh64_tlb_init()                                 do { } while (0)
 64 #define sh64_next_free_dtlb_entry()                     (0)
 65 #define sh64_get_wired_dtlb_entry()                     (0)
 66 #define sh64_put_wired_dtlb_entry(entry)                do { } while (0)
 67 #define sh64_setup_tlb_slot(conf, virt, asid, phys)     do { } while (0)
 68 #define sh64_teardown_tlb_slot(addr)                    do { } while (0)
 69 #endif /* CONFIG_MMU */
 70 #endif /* __ASSEMBLY__ */
 71 #endif /* __ASM_SH_TLB_64_H */
 72 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp