1 # $NetBSD: files.x86,v 1.116 2020/06/29 23:51:35 riastradh Exp $ 2 3 # options for MP configuration through the MP spec 4 defflag opt_mpbios.h MPBIOS MPDEBUG MPBIOS_SCANPCI 5 defparam opt_mpbios.h MPVERBOSE 6 7 # MTRR support 8 defflag MTRR 9 10 # Interrupt debug 11 defflag opt_intrdebug.h INTRDEBUG 12 13 # PCI fixup options 14 defflag opt_pcifixup.h PCI_ADDR_FIXUP PCI_BUS_FIXUP 15 PCI_INTR_FIXUP PCI_INTR_FIXUP_FORCE 16 17 # To be able to test for NetBSD/xen in shared files 18 defflag opt_xen.h DO_NOT_DEFINE 19 20 # Option to have a static kernel memory layout 21 defflag opt_kaslr.h NO_X86_ASLR 22 23 defflag SVS 24 25 define cpubus { [apid = -1] } 26 define cpufeaturebus {} 27 define ioapicbus { [apid = -1] } 28 29 # BIOS32 routines 30 define bios32 31 file arch/x86/x86/bios32.c bios32 needs-flag 32 33 # 34 # CPU features 35 # 36 device cpu: cpufeaturebus 37 attach cpu at cpubus 38 file arch/x86/x86/cpu.c cpu & !xenpv 39 file arch/x86/x86/cpu_rng.c cpu | vcpu 40 41 device acpicpu: acpi 42 attach acpicpu at cpufeaturebus 43 file dev/acpi/acpi_cpu.c acpicpu 44 file dev/acpi/acpi_cpu_cstate.c acpicpu 45 file dev/acpi/acpi_cpu_pstate.c acpicpu 46 file dev/acpi/acpi_cpu_tstate.c acpicpu 47 file arch/x86/acpi/acpi_cpu_md.c acpicpu 48 49 device coretemp: sysmon_envsys 50 attach coretemp at cpufeaturebus 51 file arch/x86/x86/coretemp.c coretemp 52 53 device est 54 attach est at cpufeaturebus 55 file arch/x86/x86/est.c est 56 file arch/x86/x86/intel_busclock.c est 57 58 device odcm 59 attach odcm at cpufeaturebus 60 file arch/x86/x86/odcm.c odcm 61 62 device padlock: opencrypto, aes 63 attach padlock at cpufeaturebus 64 file arch/x86/x86/via_padlock.c padlock 65 66 device powernow 67 attach powernow at cpufeaturebus 68 file arch/x86/x86/powernow.c powernow 69 70 device viac7temp: sysmon_envsys 71 attach viac7temp at cpufeaturebus 72 file arch/x86/x86/viac7temp.c viac7temp 73 74 device vmt: sysmon_power, sysmon_taskq 75 attach vmt at cpufeaturebus 76 file arch/x86/x86/vmt.c vmt 77 78 device hyperv 79 attach hyperv at cpufeaturebus 80 file arch/x86/x86/hyperv.c hyperv needs-flag 81 82 file arch/x86/x86/apic.c ioapic | lapic 83 file arch/x86/x86/bus_dma.c machdep 84 file arch/x86/x86/bus_space.c machdep 85 file arch/x86/x86/consinit.c machdep & !xenpv 86 file arch/x86/x86/core_machdep.c coredump 87 file arch/x86/x86/cpu_topology.c machdep 88 file arch/x86/x86/db_memrw.c ddb | kgdb 89 file arch/x86/x86/db_trace.c ddb 90 file arch/x86/x86/efi.c machdep 91 file arch/x86/x86/errata.c machdep 92 file arch/x86/x86/genfb_machdep.c machdep 93 file arch/x86/x86/identcpu.c machdep 94 file arch/x86/x86/identcpu_subr.c machdep 95 file arch/x86/x86/i8259.c machdep & (!xenpv | dom0ops) 96 file arch/x86/x86/intr.c machdep & !xenpv 97 file arch/x86/x86/x86_softintr.c machdep 98 file arch/x86/x86/kgdb_machdep.c kgdb 99 file arch/x86/x86/nmi.c machdep 100 file arch/x86/x86/idt.c machdep 101 file arch/x86/x86/ipi.c machdep & !xenpv 102 file arch/x86/x86/mtrr_i686.c mtrr & !xenpv 103 file arch/x86/x86/patch.c machdep & !xenpv 104 file arch/x86/x86/platform.c machdep 105 file arch/x86/x86/pmap.c machdep 106 file arch/x86/x86/x86_tlb.c machdep 107 file arch/x86/x86/procfs_machdep.c procfs 108 file arch/x86/x86/svs.c machdep & svs 109 file arch/x86/x86/sys_machdep.c machdep 110 file arch/x86/x86/syscall.c machdep 111 file arch/x86/x86/tsc.c machdep 112 file arch/x86/x86/vm_machdep.c machdep 113 file arch/x86/x86/x86_autoconf.c machdep & !xenpv 114 file arch/x86/x86/x86_userconf.c userconf 115 file arch/x86/x86/x86_machdep.c machdep 116 117 file uvm/pmap/pmap_pvt.c machdep 118 119 file arch/x86/x86/cpu_ucode.c cpu_ucode needs-flag 120 file arch/x86/x86/cpu_ucode_amd.c cpu_ucode needs-flag 121 file arch/x86/x86/cpu_ucode_intel.c cpu_ucode needs-flag 122 file arch/x86/x86/compat_60_cpu_ucode.c compat_60 & cpu_ucode 123 124 define lapic 125 file arch/x86/x86/lapic.c lapic needs-flag 126 127 device ioapic: lapic 128 attach ioapic at ioapicbus 129 file arch/x86/x86/ioapic.c ioapic needs-flag 130 131 # MP configuration using Intel SMP specification 1.4 132 file arch/x86/x86/mpbios.c mpbios 133 134 # MP configuration using either ACPI or Intel SMP specification 1.4 135 file arch/x86/x86/mp.c acpi | mpbios 136 137 # MP configuration using ACPI 138 file arch/x86/x86/mpacpi.c acpi 139 140 file arch/x86/acpi/acpi_pdc.c acpi 141 file arch/x86/acpi/acpi_wakeup.c acpi & !xenpv 142 file arch/x86/acpi/acpi_machdep.c acpi 143 144 file arch/x86/isa/isa_machdep.c isa 145 146 # PC clock 147 file arch/x86/isa/clock.c !xenpv 148 file arch/x86/isa/rtc.c isa 149 150 # Stubs for x86 routines not included in the system 151 file arch/x86/x86/x86_stub.c 152 153 # IPMI device 154 file arch/x86/x86/x86_ipmi.c ipmi needs-flag 155 156 file arch/x86/x86/vga_post.c vga_post 157 158 file arch/x86/pci/pci_machdep.c pci 159 #file arch/x86/pci/pci_ranges.c pci 160 file arch/x86/pci/pci_intr_machdep.c pci 161 file arch/x86/pci/pci_msi_machdep.c pci & ! no_pci_msi_msix 162 file arch/x86/pci/msipic.c pci & ! no_pci_msi_msix 163 164 file arch/x86/pci/pciide_machdep.c pciide_common 165 166 file arch/x86/pci/pci_bus_fixup.c pci_bus_fixup 167 file arch/x86/pci/pci_addr_fixup.c pci_addr_fixup 168 169 # AES-NI 170 include "crypto/aes/arch/x86/files.aesni" 171 172 # VIA ACE 173 include "crypto/aes/arch/x86/files.aesvia" 174 175 # Bitsliced AES with SSE2 176 include "crypto/aes/arch/x86/files.aessse2" 177 178 # Permutation-based AES with PSHUFB 179 include "crypto/aes/arch/x86/files.aesssse3" 180