1 1.166 skrll # $NetBSD: files.arm,v 1.166 2022/04/02 11:16:07 skrll Exp $ 2 1.2 bjh21 3 1.9 reinoud # temporary define to allow easy moving to ../arch/arm/arm32 4 1.46 lukem defflag ARM32 5 1.12 bjh21 6 1.123 matt # predefine for CPU_ARMV6 and CPU_ARMV7 7 1.123 matt defflag opt_cpuoptions.h ARM32_DISABLE_ALIGNMENT_FAULTS 8 1.123 matt 9 1.57 thorpej # CPU types. Make sure to update <arm/cpuconf.h> if you change this list. 10 1.123 matt defflag opt_cputypes.h CPU_PRE_ARMV6 11 1.141 maxv defflag opt_cputypes.h CPU_ARMV3: CPU_PRE_ARMV6 12 1.126 matt defflag opt_cputypes.h CPU_ARMV4: CPU_ARMV3 13 1.126 matt defflag opt_cputypes.h CPU_ARMV4T: CPU_ARMV4 14 1.126 matt defflag opt_cputypes.h CPU_ARMV5T: CPU_ARMV4T 15 1.126 matt defflag opt_cputypes.h CPU_ARMV5TE: CPU_ARMV5T 16 1.126 matt defflag opt_cputypes.h CPU_XSCALE: CPU_ARMV5TE 17 1.123 matt defflag opt_cputypes.h CPU_ARMV6: ARM32_DISABLE_ALIGNMENT_FAULTS 18 1.123 matt defflag opt_cputypes.h CPU_ARMV7: ARM32_DISABLE_ALIGNMENT_FAULTS 19 1.126 matt defflag opt_cputypes.h CPU_ARM6: CPU_ARMV3 20 1.126 matt defflag opt_cputypes.h CPU_ARM7: CPU_ARMV3 21 1.126 matt defflag opt_cputypes.h CPU_ARM8: CPU_ARMV4 22 1.126 matt defflag opt_cputypes.h CPU_SA110: CPU_ARMV4 23 1.126 matt defflag opt_cputypes.h CPU_SA1100: CPU_ARMV4 24 1.126 matt defflag opt_cputypes.h CPU_SA1110: CPU_ARMV4 25 1.126 matt defflag opt_cputypes.h CPU_FA526: CPU_ARMV4 26 1.126 matt defflag opt_cputypes.h CPU_IXP12X0: CPU_ARMV4 27 1.126 matt defflag opt_cputypes.h CPU_ARM7TDMI: CPU_ARMV4T 28 1.126 matt defflag opt_cputypes.h CPU_ARM9: CPU_ARMV4T 29 1.126 matt defflag opt_cputypes.h CPU_ARM10: CPU_ARMV5T 30 1.126 matt defflag opt_cputypes.h CPU_ARM9E: CPU_ARMV5TE 31 1.126 matt defflag opt_cputypes.h CPU_XSCALE_80200: CPU_XSCALE 32 1.126 matt defflag opt_cputypes.h CPU_XSCALE_80321: CPU_XSCALE 33 1.126 matt defflag opt_cputypes.h CPU_XSCALE_PXA250: CPU_XSCALE 34 1.126 matt defflag opt_cputypes.h CPU_XSCALE_PXA270: CPU_XSCALE 35 1.126 matt defflag opt_cputypes.h CPU_XSCALE_IXP425: CPU_XSCALE 36 1.126 matt defflag opt_cputypes.h CPU_SHEEVA: CPU_ARMV5TE 37 1.121 matt defflag opt_cputypes.h CPU_ARM11: CPU_ARMV6 38 1.91 matt defflag opt_cputypes.h CPU_ARM1136: CPU_ARM11 39 1.91 matt defflag opt_cputypes.h CPU_ARM1176: CPU_ARM11 40 1.101 bsh defflag opt_cputypes.h CPU_ARM11MPCORE: CPU_ARM11 41 1.118 matt defflag opt_cputypes.h CPU_PJ4B: CPU_ARMV7 42 1.118 matt defflag opt_cputypes.h CPU_CORTEX: CPU_ARMV7 43 1.121 matt defflag opt_cputypes.h FPU_VFP 44 1.56 thorpej 45 1.53 briggs defparam opt_cpuoptions.h XSCALE_CCLKCFG 46 1.66 bsh defflag opt_cpuoptions.h XSCALE_CACHE_WRITE_THROUGH 47 1.66 bsh defflag opt_cpuoptions.h XSCALE_CACHE_WRITE_BACK 48 1.68 thorpej defflag opt_cpuoptions.h XSCALE_NO_COALESCE_WRITES 49 1.68 thorpej defflag opt_cpuoptions.h XSCALE_CACHE_READ_WRITE_ALLOCATE 50 1.77 bsh defflag opt_cpuoptions.h ARM9_CACHE_WRITE_THROUGH 51 1.109 matt defflag opt_cpuoptions.h TPIDRPRW_IS_CURLWP 52 1.109 matt defflag opt_cpuoptions.h TPIDRPRW_IS_CURCPU 53 1.99 matt defflag opt_cpuoptions.h ARM11_PMC CORTEX_PMC 54 1.97 uebayasi defflag opt_cpuoptions.h ARM11_CACHE_WRITE_THROUGH 55 1.121 matt defflag opt_cpuoptions.h ARM11_COMPAT_MMU 56 1.120 matt defflag opt_cpuoptions.h ARM_HAS_VBAR 57 1.128 matt defflag opt_cpuoptions.h ARM_HAS_LPAE 58 1.101 bsh # use extended small page in compatible MMU mode for ARMv6 59 1.127 matt defflag opt_cpuoptions.h SHEEVA_L2_CACHE 60 1.127 matt defflag opt_cpuoptions.h SHEEVA_L2_CACHE_WT: SHEEVA_L2_CACHE 61 1.130 jmcneill # override configuration base address register 62 1.130 jmcneill defparam opt_cpuoptions.h ARM_CBAR 63 1.53 briggs 64 1.65 thorpej # Interrupt implementation header definition. 65 1.65 thorpej defparam opt_arm_intr_impl.h ARM_INTR_IMPL 66 1.75 scw 67 1.83 thorpej # ARM-specific debug options 68 1.144 skrll defflag opt_arm_debug.h ARM_LOCK_CAS_DEBUG 69 1.144 skrll defflag opt_arm_debug.h VERBOSE_INIT_ARM 70 1.145 skrll defparam opt_arm_debug.h EARLYCONS 71 1.83 thorpej 72 1.154 maxv # ARMv8-specific options 73 1.161 maxv defflag opt_cpuoptions.h ARMV81_PAN 74 1.154 maxv defflag opt_cpuoptions.h ARMV83_PAC 75 1.155 maxv defflag opt_cpuoptions.h ARMV85_BTI 76 1.154 maxv 77 1.111 matt # Board-specific bus_space(9)/bus_dma(9) definitions 78 1.116 matt defflag opt_arm_bus_space.h __BUS_SPACE_HAS_STREAM_METHODS 79 1.139 ryo __BUS_SPACE_HAS_PROBING_METHODS 80 1.116 matt _ARM32_NEED_BUS_DMA_BOUNCE 81 1.116 matt BUSDMA_COUNTERS 82 1.13 bjh21 83 1.134 jmcneill # Timer options 84 1.134 jmcneill defflag opt_arm_timer.h __HAVE_GENERIC_CPU_INITCLOCKS 85 1.134 jmcneill 86 1.145 skrll # Start code option 87 1.145 skrll defflag opt_arm_start.h __HAVE_GENERIC_START 88 1.145 skrll 89 1.143 skrll # Console options 90 1.143 skrll defparam opt_console.h CONSADDR 91 1.143 skrll defparam opt_console.h CONSPEED 92 1.143 skrll defparam opt_console.h CONMODE 93 1.143 skrll defparam opt_console.h CONADDR 94 1.143 skrll 95 1.13 bjh21 # Floating point emulator 96 1.142 skrll obsolete defflag ARMFPE 97 1.25 bjh21 98 1.90 rearnsha # VFP support 99 1.108 matt file arch/arm/vfp/vfp_init.c arm32 100 1.115 matt #file arch/arm/vfp/pmap_vfp.S arm32 & fpu_vfp 101 1.90 rearnsha 102 1.165 jmcneill # SMC Calling Convention 103 1.165 jmcneill define smccc 104 1.165 jmcneill file arch/arm/arm/smccc.c smccc 105 1.165 jmcneill 106 1.133 jmcneill # Power State Coordination Interface (PSCI) 107 1.165 jmcneill device psci: smccc 108 1.133 jmcneill file arch/arm/arm/psci.c psci 109 1.133 jmcneill file arch/arm/arm/psci_arm.S psci 110 1.133 jmcneill 111 1.146 jmcneill # EFI support 112 1.146 jmcneill defflag opt_efi.h EFI_RUNTIME 113 1.146 jmcneill file arch/arm/arm/efi_runtime.c efi_runtime 114 1.146 jmcneill 115 1.67 scw # New PMAP options 116 1.137 skrll defflag opt_arm32_pmap.h PMAPCOUNTERS 117 1.112 matt PMAP_STEAL_MEMORY PMAP_NEED_ALLOC_POOLPAGE 118 1.126 matt PMAP_TLB 119 1.126 matt defparam opt_arm32_pmap.h PGSHIFT 120 1.67 scw 121 1.14 matt # MI console support 122 1.14 matt file dev/cons.c 123 1.14 matt 124 1.4 bjh21 # DDB 125 1.4 bjh21 file arch/arm/arm/db_disasm.c ddb 126 1.69 briggs file arch/arm/arm32/db_interface.c (ddb|kgdb) & arm32 127 1.31 bjh21 file arch/arm/arm/db_trace.c ddb 128 1.14 matt file arch/arm/arm32/db_machdep.c ddb & arm32 129 1.69 briggs file arch/arm/arm32/kgdb_machdep.c kgdb & arm32 130 1.14 matt 131 1.47 thorpej # FIQ support 132 1.47 thorpej file arch/arm/arm/fiq.c 133 1.47 thorpej file arch/arm/arm/fiq_subr.S 134 1.10 reinoud 135 1.10 reinoud # mainbus files 136 1.110 matt device mainbus { [base = -1], [size = 0], [dack = -1], [irq = -1], [intrbase = -1], [core = -1] } 137 1.10 reinoud attach mainbus at root 138 1.10 reinoud file arch/arm/mainbus/mainbus.c mainbus & arm32 139 1.10 reinoud file arch/arm/mainbus/mainbus_io.c mainbus & arm32 140 1.10 reinoud file arch/arm/mainbus/mainbus_io_asm.S mainbus & arm32 141 1.10 reinoud 142 1.11 bjh21 device cpu { } 143 1.23 matt attach cpu at mainbus with cpu_mainbus 144 1.23 matt file arch/arm/mainbus/cpu_mainbus.c cpu_mainbus & arm32 145 1.3 bjh21 146 1.3 bjh21 # files related to debugging 147 1.3 bjh21 file arch/arm/arm/disassem.c 148 1.5 bjh21 149 1.58 thorpej # bus_space(9) 150 1.58 thorpej define bus_space_generic 151 1.58 thorpej file arch/arm/arm/bus_space_asm_generic.S bus_space_generic 152 1.58 thorpej file arch/arm/arm/bus_space_notimpl.S arm32 153 1.58 thorpej 154 1.156 maxv file arch/arm/arm/bus_stubs.c 155 1.156 maxv 156 1.152 skrll file arch/arm/arm/arm_cpu_topology.c 157 1.17 bjh21 file arch/arm/arm/arm_machdep.c 158 1.48 bjh21 file arch/arm/arm/ast.c 159 1.62 bjh21 file arch/arm/arm/bcopyinout.S 160 1.29 bjh21 file arch/arm/arm/blockio.S 161 1.26 bjh21 file arch/arm/arm/bootconfig.c 162 1.16 bjh21 file arch/arm/arm/compat_13_machdep.c compat_13 163 1.80 christos file arch/arm/arm/compat_16_machdep.c compat_16 164 1.63 bjh21 file arch/arm/arm/copystr.S 165 1.149 pgoyette file arch/arm/arm/core_machdep.c coredump 166 1.24 bjh21 file arch/arm/arm/cpufunc.c 167 1.24 bjh21 file arch/arm/arm/cpufunc_asm.S 168 1.40 thorpej file arch/arm/arm/cpufunc_asm_arm67.S cpu_arm6 | cpu_arm7 169 1.40 thorpej file arch/arm/arm/cpufunc_asm_arm7tdmi.S cpu_arm7tdmi 170 1.40 thorpej file arch/arm/arm/cpufunc_asm_arm8.S cpu_arm8 171 1.40 thorpej file arch/arm/arm/cpufunc_asm_arm9.S cpu_arm9 172 1.100 kiyohara file arch/arm/arm/cpufunc_asm_arm10.S cpu_arm9e | cpu_arm10 | 173 1.100 kiyohara cpu_sheeva 174 1.124 matt file arch/arm/arm/cpufunc_asm_arm11.S cpu_arm11 175 1.91 matt file arch/arm/arm/cpufunc_asm_arm1136.S cpu_arm1136 176 1.106 skrll file arch/arm/arm/cpufunc_asm_arm11x6.S cpu_arm1136 | cpu_arm1176 177 1.82 christos file arch/arm/arm/cpufunc_asm_armv4.S cpu_arm9 | cpu_arm9e | 178 1.82 christos cpu_arm10 | 179 1.93 matt cpu_fa526 | 180 1.73 rearnsha cpu_sa110 | 181 1.73 rearnsha cpu_sa1100 | 182 1.73 rearnsha cpu_sa1110 | 183 1.61 ichiro cpu_ixp12x0 | 184 1.126 matt cpu_xscale | 185 1.100 kiyohara cpu_sheeva 186 1.101 bsh file arch/arm/arm/cpufunc_asm_armv5.S cpu_arm10 | cpu_arm11mpcore 187 1.100 kiyohara file arch/arm/arm/cpufunc_asm_armv5_ec.S cpu_arm9e | cpu_arm10 | 188 1.100 kiyohara cpu_sheeva 189 1.126 matt file arch/arm/arm/cpufunc_asm_armv6.S cpu_arm11 190 1.117 rkujawa file arch/arm/arm/cpufunc_asm_armv7.S cpu_cortex | cpu_pj4b 191 1.117 rkujawa file arch/arm/arm/cpufunc_asm_pj4b.S cpu_pj4b 192 1.60 rjs file arch/arm/arm/cpufunc_asm_sa1.S cpu_sa110 | cpu_sa1100 | 193 1.61 ichiro cpu_sa1110 | 194 1.61 ichiro cpu_ixp12x0 195 1.60 rjs file arch/arm/arm/cpufunc_asm_sa11x0.S cpu_sa1100 | cpu_sa1110 196 1.93 matt file arch/arm/arm/cpufunc_asm_fa526.S cpu_fa526 197 1.126 matt file arch/arm/arm/cpufunc_asm_xscale.S cpu_xscale 198 1.61 ichiro file arch/arm/arm/cpufunc_asm_ixp12x0.S cpu_ixp12x0 199 1.100 kiyohara file arch/arm/arm/cpufunc_asm_sheeva.S cpu_sheeva 200 1.107 matt file arch/arm/arm/cpu_exec.c 201 1.152 skrll file arch/arm/arm/cpu_in_cksum.S (inet | inet6) & cpu_in_cksum 202 1.153 skrll file arch/arm/arm/cpu_subr.c 203 1.96 bjh21 file arch/arm/arm/fusu.S 204 1.84 yamt file arch/arm/arm/idle_machdep.c 205 1.83 thorpej file arch/arm/arm/lock_cas.S 206 1.164 christos file arch/arm/arm/process_machdep.c 207 1.37 chris file arch/arm/arm/procfs_machdep.c procfs 208 1.7 bjh21 file arch/arm/arm/sig_machdep.c 209 1.5 bjh21 file arch/arm/arm/sigcode.S 210 1.50 bjh21 file arch/arm/arm/syscall.c 211 1.166 skrll file arch/arm/arm/trap.c 212 1.20 bjh21 file arch/arm/arm/undefined.c 213 1.49 bjh21 file arch/arm/arm/vectors.S arm32 214 1.14 matt 215 1.166 skrll # EFI runtime (machdep) 216 1.166 skrll file arch/arm/arm/efi_machdep.c efi_runtime 217 1.166 skrll 218 1.166 skrll 219 1.14 matt # files common to arm32 implementations 220 1.35 chris file arch/arm/arm32/arm32_machdep.c arm32 221 1.35 chris file arch/arm/arm32/bus_dma.c arm32 222 1.23 matt file arch/arm/arm32/cpu.c arm32 & cpu 223 1.35 chris file arch/arm/arm32/cpuswitch.S arm32 224 1.35 chris file arch/arm/arm32/exception.S arm32 225 1.35 chris file arch/arm/arm32/fault.c arm32 226 1.87 ad file arch/arm/arm32/kobj_machdep.c arm32 & modular 227 1.71 thorpej file arch/arm/arm32/pmap.c arm32 228 1.35 chris file arch/arm/arm32/setcpsr.S arm32 229 1.35 chris file arch/arm/arm32/setstack.S arm32 230 1.35 chris file arch/arm/arm32/stubs.c arm32 231 1.14 matt file arch/arm/arm32/sys_machdep.c arm32 232 1.35 chris file arch/arm/arm32/vm_machdep.c arm32 233 1.15 matt 234 1.91 matt # files less common to arm32 implementations... 235 1.91 matt file kern/kern_cctr.c arm11 236 1.91 matt file arch/arm/arm32/arm11_pmc.c arm11_pmc 237 1.99 matt file arch/arm/arm32/cortex_pmc.c cortex_pmc 238 1.126 matt file arch/arm/arm32/arm32_tlb.c (cpu_armv7 | cpu_arm11) & (!arm11_compat_mmu & !cpu_pre_armv6) 239 1.126 matt file uvm/pmap/pmap_tlb.c (cpu_armv7 | cpu_arm11) & (!arm11_compat_mmu & !cpu_pre_armv6) 240 1.91 matt 241 1.131 skrll # generic pmap files for arm32 implementations 242 1.131 skrll file uvm/pmap/pmap_pvt.c arm32 243 1.131 skrll 244 1.15 matt # arm32 library functions 245 1.15 matt file arch/arm/arm32/bcopy_page.S arm32 246 1.51 bjh21 247 1.107 matt # 248 1.107 matt include "compat/netbsd32/files.netbsd32" 249 1.107 matt file arch/arm/arm32/netbsd32_machdep.c arm32 & compat_netbsd32 250 1.148 pgoyette file arch/arm/arm32/netbsd32_machdep_16.c arm32 & compat_netbsd32 & 251 1.148 pgoyette compat_16 252 1.148 pgoyette file arch/arm/arm32/netbsd32_machdep_13.c arm32 & compat_netbsd32 & 253 1.148 pgoyette compat_13 254 1.148 pgoyette 255 1.107 matt 256 1.51 bjh21 # Linux binary compatibility (COMPAT_LINUX) 257 1.51 bjh21 include "compat/ossaudio/files.ossaudio" 258 1.51 bjh21 include "compat/linux/files.linux" 259 1.51 bjh21 include "compat/linux/arch/arm/files.linux_arm" 260 1.51 bjh21 file arch/arm/arm/linux_sigcode.S compat_linux 261 1.52 bjh21 file arch/arm/arm/linux_syscall.c compat_linux 262 1.51 bjh21 file arch/arm/arm/linux_trap.c compat_linux 263 1.147 jmcneill 264 1.147 jmcneill # profiling support 265 1.147 jmcneill file dev/tprof/tprof_armv7.c tprof 266 1.158 riastrad 267 1.159 riastrad # vpaes with ARM NEON 268 1.158 riastrad include "crypto/aes/arch/arm/files.aesneon" 269 1.160 riastrad 270 1.160 riastrad # ChaCha with ARM NEON 271 1.160 riastrad include "crypto/chacha/arch/arm/files.chacha_arm" 272