1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved. 24# 25# Copyright (c) 2010, Intel Corporation. 26# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 27# Copyright 2020 Joyent, Inc. 28# Copyright 2021 Oxide Computer Company 29# 30# This Makefile defines file modules in the directory uts/i86pc 31# and its children. These are the source files which are i86pc 32# "implementation architecture" dependent. 33# 34 35# 36# object lists 37# 38CORE_OBJS += \ 39 acpi_stubs.o \ 40 biosdisk.o \ 41 bios_call.o \ 42 cbe.o \ 43 cmi.o \ 44 cmi_hw.o \ 45 cms.o \ 46 comm_page.o \ 47 confunix.o \ 48 cpu_idle.o \ 49 cpuid.o \ 50 cpuid_subr.o \ 51 cpupm.o \ 52 cpupm_mach.o \ 53 cpupm_amd.o \ 54 cpupm_intel.o \ 55 cpupm_throttle.o \ 56 cpu_acpi.o \ 57 dis_tables.o \ 58 ddi_impl.o \ 59 dtrace_subr.o \ 60 dvma.o \ 61 fpu_subr.o \ 62 fakebop.o \ 63 fastboot.o \ 64 fb_swtch.o \ 65 graphics.o \ 66 hardclk.o \ 67 hat_i86.o \ 68 hat_kdi.o \ 69 hma.o \ 70 hma_asm.o \ 71 hma_fpu.o \ 72 hment.o \ 73 hold_page.o \ 74 hrtimers.o \ 75 htable.o \ 76 hypercall.o \ 77 hypersubr.o \ 78 i86_mmu.o \ 79 ibft.o \ 80 instr_size.o \ 81 intr.o \ 82 kboot_mmu.o \ 83 kdi_idt.o \ 84 kdi_idthdl.o \ 85 kdi_asm.o \ 86 lgrpplat.o \ 87 mach_kdi.o \ 88 mach_sysconfig.o \ 89 machdep.o \ 90 md_clear.o \ 91 mem_config.o \ 92 mem_config_stubs.o \ 93 mem_config_arch.o \ 94 memlist_new.o \ 95 memnode.o \ 96 microcode.o \ 97 mlsetup.o \ 98 mp_call.o \ 99 mp_implfuncs.o \ 100 mp_machdep.o \ 101 mp_pc.o \ 102 mp_startup.o \ 103 memscrub.o \ 104 mpcore.o \ 105 notes.o \ 106 pci_bios.o \ 107 pci_cfgacc.o \ 108 pci_cfgacc_x86.o \ 109 pci_cfgspace.o \ 110 pci_mech1.o \ 111 pci_mech1_amd.o \ 112 pci_mech2.o \ 113 pci_neptune.o \ 114 pci_orion.o \ 115 pmem.o \ 116 ppage.o \ 117 pwrnow.o \ 118 smt.o \ 119 speedstep.o \ 120 ssp.o \ 121 startup.o \ 122 timestamp.o \ 123 todpc_subr.o \ 124 tscc_pit.o \ 125 trap.o \ 126 turbo.o \ 127 vm_machdep.o \ 128 xpv_platform.o \ 129 x_call.o 130 131# 132# Add the SMBIOS subsystem object files directly to the list of objects 133# built into unix itself; this is all common code except for smb_dev.c. 134# 135CORE_OBJS += $(SMBIOS_OBJS) 136 137# 138# These get compiled twice: 139# - once in the dboot (direct boot) identity mapped code 140# - once for use during early startup in unix 141# 142BOOT_DRIVER_OBJS = \ 143 boot_console.o \ 144 boot_keyboard.o \ 145 boot_keyboard_table.o \ 146 boot_vga.o \ 147 boot_fb.o \ 148 boot_mmu.o \ 149 dboot_multiboot2.o \ 150 $(FONT_OBJS) 151 152CORE_OBJS += $(BOOT_DRIVER_OBJS) 153 154# 155# locore.o is special. It must be the first file relocated so that it 156# it is relocated just where its name implies. 157# 158SPECIAL_OBJS += \ 159 locore.o \ 160 fast_trap_asm.o \ 161 interrupt.o \ 162 syscall_asm_amd64.o \ 163 kpti_trampolines.o 164 165# 166# Objects that get compiled into the identity mapped PT_LOAD section of unix 167# to handle the earliest part of booting. 168# 169DBOOT_OBJS_32 = 170 171DBOOT_OBJS_64 += dboot_elfload.o 172 173DBOOT_OBJS += \ 174 dboot_asm.o \ 175 dboot_grub.o \ 176 dboot_printf.o \ 177 dboot_startkern.o \ 178 memcpy.o \ 179 memset.o \ 180 muldiv.o \ 181 sha1.o \ 182 string.o \ 183 $(BOOT_DRIVER_OBJS) \ 184 $(DBOOT_OBJS_$(CLASS)) 185 186# 187# driver and misc modules 188# 189GFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \ 190 gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o \ 191 gfxp_fb.o gfxp_bitmap.o 192FIPE_OBJS += fipe_drv.o fipe_pm.o 193IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o 194ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o 195PCIE_MISC_OBJS += pcie_acpi.o pciehpc_acpi.o pcie_x86.o 196PCI_E_NEXUS_OBJS += npe.o npe_misc.o 197PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o 198PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o 199PCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o \ 200 mp_platform_common.o mp_platform_misc.o \ 201 hpet_acpi.o apic_common.o apic_timer.o 202APIX_OBJS += apix.o apic_regops.o psm_common.o apix_intr.o apix_utils.o \ 203 apix_irm.o mp_platform_common.o hpet_acpi.o apic_common.o \ 204 apic_timer.o apix_regops.o 205 206 207ACPI_DRV_OBJS += acpi_drv.o acpi_video.o 208ACPINEX_OBJS += acpinex_drv.o acpinex_event.o 209 210CPUDRV_OBJS += \ 211 cpudrv.o \ 212 cpudrv_mach.o 213 214PPM_OBJS += ppm_subr.o ppm.o ppm_plat.o 215 216ACPIPPM_OBJS += acpippm.o acpisleep.o 217ACPIDEV_OBJS += acpidev_drv.o \ 218 acpidev_scope.o acpidev_device.o \ 219 acpidev_container.o \ 220 acpidev_cpu.o \ 221 acpidev_dr.o \ 222 acpidev_memory.o \ 223 acpidev_pci.o \ 224 acpidev_resource.o \ 225 acpidev_usbport.o \ 226 acpidev_util.o 227 228DRMACH_ACPI_OBJS += drmach_acpi.o dr_util.o drmach_err.o 229 230DR_OBJS += dr.o dr_cpu.o dr_err.o dr_io.o dr_mem_acpi.o dr_quiesce.o dr_util.o 231 232ROOTNEX_OBJS += rootnex.o immu.o immu_dmar.o immu_dvma.o \ 233 immu_intrmap.o immu_qinv.o immu_regs.o 234 235TZMON_OBJS += tzmon.o 236UPPC_OBJS += uppc.o psm_common.o 237XSVC_OBJS += xsvc.o 238AMD_IOMMU_OBJS += amd_iommu.o amd_iommu_impl.o amd_iommu_acpi.o \ 239 amd_iommu_cmd.o amd_iommu_log.o amd_iommu_page_tables.o 240VMM_OBJS += vmm.o \ 241 vmm_sol_dev.o \ 242 vmm_host.o \ 243 vmm_instruction_emul.o \ 244 vmm_ioport.o \ 245 vmm_lapic.o \ 246 vmm_mem.o \ 247 vmm_stat.o \ 248 vmm_util.o \ 249 x86.o \ 250 iommu.o \ 251 vatpic.o \ 252 vatpit.o \ 253 vhpet.o \ 254 vioapic.o \ 255 vlapic.o \ 256 vrtc.o \ 257 vpmtmr.o \ 258 ept.o \ 259 vmcs.o \ 260 vmx_msr.o \ 261 vmx.o \ 262 vmx_support.o \ 263 vtd.o \ 264 vtd_sol.o \ 265 svm.o \ 266 svm_msr.o \ 267 npt.o \ 268 vmcb.o \ 269 svm_support.o \ 270 amdv.o \ 271 vmm_gpt.o \ 272 seg_vmm.o \ 273 vmm_reservoir.o \ 274 vmm_sol_vm.o \ 275 vmm_sol_glue.o \ 276 vmm_sol_ept.o \ 277 vmm_sol_rvi.o \ 278 vmm_support.o \ 279 vmm_zsd.o 280 281VIONA_OBJS += viona_main.o \ 282 viona_ring.o \ 283 viona_rx.o \ 284 viona_tx.o \ 285 viona_hook.o \ 286 287PPT_OBJS += ppt.o 288 289# 290# Build up defines and paths. 291# 292ALL_DEFS += -Di86pc 293INC_PATH += -I$(UTSBASE)/i86pc -I$(SRC)/common 294INC_PATH += -I$(UTSBASE)/i86xpv -I$(UTSBASE)/common/xen 295 296# 297# Since the assym files are derived, the dependencies must be explicit for 298# all files including this file. (This is only actually required in the 299# instance when the .nse_depinfo file does not exist.) 300# 301 302ASSYM_DEPS += \ 303 copy.o \ 304 desctbls_asm.o \ 305 ddi_i86_asm.o \ 306 exception.o \ 307 fast_trap_asm.o \ 308 float.o \ 309 i86_subr.o \ 310 interrupt.o \ 311 lock_prim.o \ 312 locore.o \ 313 mpcore.o \ 314 sseblk.o \ 315 swtch.o \ 316 syscall_asm_amd64.o \ 317 kpti_trampolines.o \ 318 cpr_wakecode.o 319 320CPR_IMPL_OBJS = cpr_impl.o cpr_wakecode.o 321 322$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%): $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h 323 324# 325# Intel Integrated Memory Controller 326# (Sandy Bridge - Cascade Lake) 327# 328IMC_OBJS = imc.o imc_decode.o imc_dump.o 329IMCSTUB_OBJS = imcstub.o 330