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