1 # $NetBSD: files.arm,v 1.145 2018/10/18 09:01:52 skrll Exp $ 2 3 # temporary define to allow easy moving to ../arch/arm/arm32 4 defflag ARM32 5 6 # predefine for CPU_ARMV6 and CPU_ARMV7 7 defflag opt_cpuoptions.h ARM32_DISABLE_ALIGNMENT_FAULTS 8 9 # CPU types. Make sure to update <arm/cpuconf.h> if you change this list. 10 defflag opt_cputypes.h CPU_PRE_ARMV6 11 defflag opt_cputypes.h CPU_ARMV3: CPU_PRE_ARMV6 12 defflag opt_cputypes.h CPU_ARMV4: CPU_ARMV3 13 defflag opt_cputypes.h CPU_ARMV4T: CPU_ARMV4 14 defflag opt_cputypes.h CPU_ARMV5T: CPU_ARMV4T 15 defflag opt_cputypes.h CPU_ARMV5TE: CPU_ARMV5T 16 defflag opt_cputypes.h CPU_XSCALE: CPU_ARMV5TE 17 defflag opt_cputypes.h CPU_ARMV6: ARM32_DISABLE_ALIGNMENT_FAULTS 18 defflag opt_cputypes.h CPU_ARMV7: ARM32_DISABLE_ALIGNMENT_FAULTS 19 defflag opt_cputypes.h CPU_ARM6: CPU_ARMV3 20 defflag opt_cputypes.h CPU_ARM7: CPU_ARMV3 21 defflag opt_cputypes.h CPU_ARM8: CPU_ARMV4 22 defflag opt_cputypes.h CPU_SA110: CPU_ARMV4 23 defflag opt_cputypes.h CPU_SA1100: CPU_ARMV4 24 defflag opt_cputypes.h CPU_SA1110: CPU_ARMV4 25 defflag opt_cputypes.h CPU_FA526: CPU_ARMV4 26 defflag opt_cputypes.h CPU_IXP12X0: CPU_ARMV4 27 defflag opt_cputypes.h CPU_ARM7TDMI: CPU_ARMV4T 28 defflag opt_cputypes.h CPU_ARM9: CPU_ARMV4T 29 defflag opt_cputypes.h CPU_ARM10: CPU_ARMV5T 30 defflag opt_cputypes.h CPU_ARM9E: CPU_ARMV5TE 31 defflag opt_cputypes.h CPU_XSCALE_80200: CPU_XSCALE 32 defflag opt_cputypes.h CPU_XSCALE_80321: CPU_XSCALE 33 defflag opt_cputypes.h CPU_XSCALE_PXA250: CPU_XSCALE 34 defflag opt_cputypes.h CPU_XSCALE_PXA270: CPU_XSCALE 35 defflag opt_cputypes.h CPU_XSCALE_IXP425: CPU_XSCALE 36 defflag opt_cputypes.h CPU_SHEEVA: CPU_ARMV5TE 37 defflag opt_cputypes.h CPU_ARM11: CPU_ARMV6 38 defflag opt_cputypes.h CPU_ARM1136: CPU_ARM11 39 defflag opt_cputypes.h CPU_ARM1176: CPU_ARM11 40 defflag opt_cputypes.h CPU_ARM11MPCORE: CPU_ARM11 41 defflag opt_cputypes.h CPU_PJ4B: CPU_ARMV7 42 defflag opt_cputypes.h CPU_CORTEX: CPU_ARMV7 43 defflag opt_cputypes.h CPU_CORTEXA5: CPU_CORTEX 44 defflag opt_cputypes.h CPU_CORTEXA7: CPU_CORTEX 45 defflag opt_cputypes.h CPU_CORTEXA8: CPU_CORTEX 46 defflag opt_cputypes.h CPU_CORTEXA9: CPU_CORTEX 47 defflag opt_cputypes.h CPU_CORTEXA15: CPU_CORTEX 48 defflag opt_cputypes.h CPU_CORTEXA17: CPU_CORTEX 49 defflag opt_cputypes.h CPU_CORTEXA35: CPU_CORTEX 50 defflag opt_cputypes.h CPU_CORTEXA53: CPU_CORTEX 51 defflag opt_cputypes.h CPU_CORTEXA57: CPU_CORTEX 52 defflag opt_cputypes.h FPU_VFP 53 54 defparam opt_cpuoptions.h XSCALE_CCLKCFG 55 defflag opt_cpuoptions.h XSCALE_CACHE_WRITE_THROUGH 56 defflag opt_cpuoptions.h XSCALE_CACHE_WRITE_BACK 57 defflag opt_cpuoptions.h XSCALE_NO_COALESCE_WRITES 58 defflag opt_cpuoptions.h XSCALE_CACHE_READ_WRITE_ALLOCATE 59 defflag opt_cpuoptions.h ARM9_CACHE_WRITE_THROUGH 60 defflag opt_cpuoptions.h TPIDRPRW_IS_CURLWP 61 defflag opt_cpuoptions.h TPIDRPRW_IS_CURCPU 62 defflag opt_cpuoptions.h ARM11_PMC CORTEX_PMC 63 defflag opt_cpuoptions.h ARM11_CACHE_WRITE_THROUGH 64 defflag opt_cpuoptions.h ARM11_COMPAT_MMU 65 defflag opt_cpuoptions.h ARM_HAS_VBAR 66 defflag opt_cpuoptions.h ARM_HAS_LPAE 67 # use extended small page in compatible MMU mode for ARMv6 68 defflag opt_cpuoptions.h SHEEVA_L2_CACHE 69 defflag opt_cpuoptions.h SHEEVA_L2_CACHE_WT: SHEEVA_L2_CACHE 70 # override configuration base address register 71 defparam opt_cpuoptions.h ARM_CBAR 72 73 # Interrupt implementation header definition. 74 defparam opt_arm_intr_impl.h ARM_INTR_IMPL 75 76 # ARM-specific debug options 77 defflag opt_arm_debug.h ARM_LOCK_CAS_DEBUG 78 defflag opt_arm_debug.h VERBOSE_INIT_ARM 79 defparam opt_arm_debug.h EARLYCONS 80 81 # Board-specific bus_space(9)/bus_dma(9) definitions 82 defflag opt_arm_bus_space.h __BUS_SPACE_HAS_STREAM_METHODS 83 __BUS_SPACE_HAS_PROBING_METHODS 84 _ARM32_NEED_BUS_DMA_BOUNCE 85 BUSDMA_COUNTERS 86 87 # Timer options 88 defflag opt_arm_timer.h __HAVE_GENERIC_CPU_INITCLOCKS 89 90 # Start code option 91 defflag opt_arm_start.h __HAVE_GENERIC_START 92 93 # Console options 94 defparam opt_console.h CONSADDR 95 defparam opt_console.h CONSPEED 96 defparam opt_console.h CONMODE 97 defparam opt_console.h CONADDR 98 99 # Floating point emulator 100 obsolete defflag ARMFPE 101 102 # VFP support 103 file arch/arm/vfp/vfp_init.c arm32 104 #file arch/arm/vfp/pmap_vfp.S arm32 & fpu_vfp 105 106 # Power State Coordination Interface (PSCI) 107 device psci 108 file arch/arm/arm/psci.c psci 109 file arch/arm/arm/psci_arm.S psci 110 111 # PMAP_DEBUG (heavily abused option) 112 defflag PMAP_DEBUG 113 114 # New PMAP options 115 defflag opt_arm32_pmap.h PMAPCOUNTERS 116 PMAP_STEAL_MEMORY PMAP_NEED_ALLOC_POOLPAGE 117 PMAP_TLB 118 defparam opt_arm32_pmap.h PGSHIFT 119 120 # MI console support 121 file dev/cons.c 122 123 # DDB 124 file arch/arm/arm/db_disasm.c ddb 125 file arch/arm/arm32/db_interface.c (ddb|kgdb) & arm32 126 file arch/arm/arm/db_trace.c ddb 127 file arch/arm/arm32/db_machdep.c ddb & arm32 128 file arch/arm/arm32/kgdb_machdep.c kgdb & arm32 129 130 # FIQ support 131 file arch/arm/arm/fiq.c 132 file arch/arm/arm/fiq_subr.S 133 134 # mainbus files 135 device mainbus { [base = -1], [size = 0], [dack = -1], [irq = -1], [intrbase = -1], [core = -1] } 136 attach mainbus at root 137 file arch/arm/mainbus/mainbus.c mainbus & arm32 138 file arch/arm/mainbus/mainbus_io.c mainbus & arm32 139 file arch/arm/mainbus/mainbus_io_asm.S mainbus & arm32 140 141 device cpu { } 142 attach cpu at mainbus with cpu_mainbus 143 file arch/arm/mainbus/cpu_mainbus.c cpu_mainbus & arm32 144 145 # files related to debugging 146 file arch/arm/arm/disassem.c 147 148 # bus_space(9) 149 define bus_space_generic 150 file arch/arm/arm/bus_space_asm_generic.S bus_space_generic 151 file arch/arm/arm/bus_space_notimpl.S arm32 152 153 file arch/arm/arm/arm_machdep.c 154 file arch/arm/arm/ast.c 155 file arch/arm/arm/bcopyinout.S 156 file arch/arm/arm/blockio.S 157 file arch/arm/arm/bootconfig.c 158 file arch/arm/arm/compat_13_machdep.c compat_13 159 file arch/arm/arm/compat_16_machdep.c compat_16 160 file arch/arm/arm/copystr.S 161 file arch/arm/arm/core_machdep.c 162 file arch/arm/arm/cpu_in_cksum.S (inet | inet6) & cpu_in_cksum 163 file arch/arm/arm/cpufunc.c 164 file arch/arm/arm/cpufunc_asm.S 165 file arch/arm/arm/cpufunc_asm_arm67.S cpu_arm6 | cpu_arm7 166 file arch/arm/arm/cpufunc_asm_arm7tdmi.S cpu_arm7tdmi 167 file arch/arm/arm/cpufunc_asm_arm8.S cpu_arm8 168 file arch/arm/arm/cpufunc_asm_arm9.S cpu_arm9 169 file arch/arm/arm/cpufunc_asm_arm10.S cpu_arm9e | cpu_arm10 | 170 cpu_sheeva 171 file arch/arm/arm/cpufunc_asm_arm11.S cpu_arm11 172 file arch/arm/arm/cpufunc_asm_arm1136.S cpu_arm1136 173 file arch/arm/arm/cpufunc_asm_arm11x6.S cpu_arm1136 | cpu_arm1176 174 file arch/arm/arm/cpufunc_asm_armv4.S cpu_arm9 | cpu_arm9e | 175 cpu_arm10 | 176 cpu_fa526 | 177 cpu_sa110 | 178 cpu_sa1100 | 179 cpu_sa1110 | 180 cpu_ixp12x0 | 181 cpu_xscale | 182 cpu_sheeva 183 file arch/arm/arm/cpufunc_asm_armv5.S cpu_arm10 | cpu_arm11mpcore 184 file arch/arm/arm/cpufunc_asm_armv5_ec.S cpu_arm9e | cpu_arm10 | 185 cpu_sheeva 186 file arch/arm/arm/cpufunc_asm_armv6.S cpu_arm11 187 file arch/arm/arm/cpufunc_asm_armv7.S cpu_cortex | cpu_pj4b 188 file arch/arm/arm/cpufunc_asm_pj4b.S cpu_pj4b 189 file arch/arm/arm/cpufunc_asm_sa1.S cpu_sa110 | cpu_sa1100 | 190 cpu_sa1110 | 191 cpu_ixp12x0 192 file arch/arm/arm/cpufunc_asm_sa11x0.S cpu_sa1100 | cpu_sa1110 193 file arch/arm/arm/cpufunc_asm_fa526.S cpu_fa526 194 file arch/arm/arm/cpufunc_asm_xscale.S cpu_xscale 195 file arch/arm/arm/cpufunc_asm_ixp12x0.S cpu_ixp12x0 196 file arch/arm/arm/cpufunc_asm_sheeva.S cpu_sheeva 197 file arch/arm/arm/cpu_exec.c 198 file arch/arm/arm/fusu.S 199 file arch/arm/arm/idle_machdep.c 200 file arch/arm/arm/lock_cas.S 201 file arch/arm/arm/process_machdep.c 202 file arch/arm/arm/procfs_machdep.c procfs 203 file arch/arm/arm/sig_machdep.c 204 file arch/arm/arm/sigcode.S 205 file arch/arm/arm/syscall.c 206 file arch/arm/arm/undefined.c 207 file arch/arm/arm/vectors.S arm32 208 209 # files common to arm32 implementations 210 file arch/arm/arm32/arm32_machdep.c arm32 211 file arch/arm/arm32/bus_dma.c arm32 212 file arch/arm/arm32/cpu.c arm32 & cpu 213 file arch/arm/arm32/cpuswitch.S arm32 214 file arch/arm/arm32/exception.S arm32 215 file arch/arm/arm32/fault.c arm32 216 file arch/arm/arm32/kobj_machdep.c arm32 & modular 217 file arch/arm/arm32/pmap.c arm32 218 file arch/arm/arm32/setcpsr.S arm32 219 file arch/arm/arm32/setstack.S arm32 220 file arch/arm/arm32/stubs.c arm32 221 file arch/arm/arm32/sys_machdep.c arm32 222 file arch/arm/arm32/vm_machdep.c arm32 223 224 # files less common to arm32 implementations... 225 file kern/kern_cctr.c arm11 226 file arch/arm/arm32/arm11_pmc.c arm11_pmc 227 file arch/arm/arm32/cortex_pmc.c cortex_pmc 228 file arch/arm/arm32/arm32_tlb.c (cpu_armv7 | cpu_arm11) & (!arm11_compat_mmu & !cpu_pre_armv6) 229 file uvm/pmap/pmap_tlb.c (cpu_armv7 | cpu_arm11) & (!arm11_compat_mmu & !cpu_pre_armv6) 230 231 # generic pmap files for arm32 implementations 232 file uvm/pmap/pmap_pvt.c arm32 233 234 # arm32 library functions 235 file arch/arm/arm32/bcopy_page.S arm32 236 237 # 238 include "compat/netbsd32/files.netbsd32" 239 file arch/arm/arm32/netbsd32_machdep.c arm32 & compat_netbsd32 240 241 # Linux binary compatibility (COMPAT_LINUX) 242 include "compat/ossaudio/files.ossaudio" 243 include "compat/linux/files.linux" 244 include "compat/linux/arch/arm/files.linux_arm" 245 file arch/arm/arm/linux_sigcode.S compat_linux 246 file arch/arm/arm/linux_syscall.c compat_linux 247 file arch/arm/arm/linux_trap.c compat_linux 248