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 2018 Joyent, Inc. 27# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 28# 29# This Makefile defines file modules in the directory uts/i86pc 30# and its children. These are the source files which are i86pc 31# "implementation architecture" dependent. 32# 33 34# 35# object lists 36# 37CORE_OBJS += \ 38 acpi_stubs.o \ 39 biosdisk.o \ 40 bios_call.o \ 41 cbe.o \ 42 cmi.o \ 43 cmi_hw.o \ 44 cms.o \ 45 comm_page.o \ 46 confunix.o \ 47 cpu_idle.o \ 48 cpuid.o \ 49 cpuid_subr.o \ 50 cpupm.o \ 51 cpupm_mach.o \ 52 cpupm_amd.o \ 53 cpupm_intel.o \ 54 cpupm_throttle.o \ 55 cpu_acpi.o \ 56 dis_tables.o \ 57 ddi_impl.o \ 58 dtrace_subr.o \ 59 dvma.o \ 60 fpu_subr.o \ 61 fakebop.o \ 62 fastboot.o \ 63 fb_swtch.o \ 64 graphics.o \ 65 hardclk.o \ 66 hat_i86.o \ 67 hat_kdi.o \ 68 hma_fpu.o \ 69 hment.o \ 70 hold_page.o \ 71 hrtimers.o \ 72 htable.o \ 73 hypercall.o \ 74 hypersubr.o \ 75 i86_mmu.o \ 76 ibft.o \ 77 instr_size.o \ 78 intr.o \ 79 kboot_mmu.o \ 80 kdi_idt.o \ 81 kdi_idthdl.o \ 82 kdi_asm.o \ 83 lgrpplat.o \ 84 mach_kdi.o \ 85 mach_sysconfig.o \ 86 machdep.o \ 87 mem_config.o \ 88 mem_config_stubs.o \ 89 mem_config_arch.o \ 90 memlist_new.o \ 91 memnode.o \ 92 microcode.o \ 93 microfind.o \ 94 mlsetup.o \ 95 mp_call.o \ 96 mp_implfuncs.o \ 97 mp_machdep.o \ 98 mp_pc.o \ 99 mp_startup.o \ 100 memscrub.o \ 101 mpcore.o \ 102 notes.o \ 103 pci_bios.o \ 104 pci_cfgacc.o \ 105 pci_cfgacc_x86.o \ 106 pci_cfgspace.o \ 107 pci_mech1.o \ 108 pci_mech1_amd.o \ 109 pci_mech2.o \ 110 pci_neptune.o \ 111 pci_orion.o \ 112 pmem.o \ 113 ppage.o \ 114 pwrnow.o \ 115 speedstep.o \ 116 ssp.o \ 117 startup.o \ 118 timestamp.o \ 119 todpc_subr.o \ 120 trap.o \ 121 turbo.o \ 122 vm_machdep.o \ 123 xpv_platform.o \ 124 x_call.o 125 126# 127# Add the SMBIOS subsystem object files directly to the list of objects 128# built into unix itself; this is all common code except for smb_dev.c. 129# 130CORE_OBJS += $(SMBIOS_OBJS) 131 132# 133# These get compiled twice: 134# - once in the dboot (direct boot) identity mapped code 135# - once for use during early startup in unix 136# 137BOOT_DRIVER_OBJS = \ 138 boot_console.o \ 139 boot_keyboard.o \ 140 boot_keyboard_table.o \ 141 boot_vga.o \ 142 boot_fb.o \ 143 boot_mmu.o \ 144 dboot_multiboot2.o \ 145 $(FONT_OBJS) 146 147CORE_OBJS += $(BOOT_DRIVER_OBJS) 148 149# 150# locore.o is special. It must be the first file relocated so that it 151# it is relocated just where its name implies. 152# 153SPECIAL_OBJS_32 += \ 154 locore.o \ 155 fast_trap_asm.o \ 156 interrupt.o \ 157 syscall_asm.o 158 159SPECIAL_OBJS_64 += \ 160 locore.o \ 161 fast_trap_asm.o \ 162 interrupt.o \ 163 syscall_asm_amd64.o \ 164 kpti_trampolines.o 165 166SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS)) 167 168# 169# Objects that get compiled into the identity mapped PT_LOAD section of unix 170# to handle the earliest part of booting. 171# 172DBOOT_OBJS_32 = 173 174DBOOT_OBJS_64 += dboot_elfload.o 175 176DBOOT_OBJS += \ 177 dboot_asm.o \ 178 dboot_grub.o \ 179 dboot_printf.o \ 180 dboot_startkern.o \ 181 memcpy.o \ 182 memset.o \ 183 muldiv.o \ 184 sha1.o \ 185 string.o \ 186 $(BOOT_DRIVER_OBJS) \ 187 $(DBOOT_OBJS_$(CLASS)) 188 189# 190# driver and misc modules 191# 192GFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \ 193 gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o \ 194 gfxp_fb.o gfxp_bitmap.o 195FIPE_OBJS += fipe_drv.o fipe_pm.o 196IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o 197ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o 198PCIE_MISC_OBJS += pcie_acpi.o pciehpc_acpi.o pcie_x86.o 199PCI_E_NEXUS_OBJS += npe.o npe_misc.o 200PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o 201PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o 202PCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o \ 203 mp_platform_common.o mp_platform_misc.o \ 204 hpet_acpi.o apic_common.o apic_timer.o 205APIX_OBJS += apix.o apic_regops.o psm_common.o apix_intr.o apix_utils.o \ 206 apix_irm.o mp_platform_common.o hpet_acpi.o apic_common.o \ 207 apic_timer.o apix_regops.o 208 209 210ACPI_DRV_OBJS += acpi_drv.o acpi_video.o 211ACPINEX_OBJS += acpinex_drv.o acpinex_event.o 212 213CPUDRV_OBJS += \ 214 cpudrv.o \ 215 cpudrv_mach.o 216 217PPM_OBJS += ppm_subr.o ppm.o ppm_plat.o 218 219ACPIPPM_OBJS += acpippm.o acpisleep.o 220ACPIDEV_OBJS += acpidev_drv.o \ 221 acpidev_scope.o acpidev_device.o \ 222 acpidev_container.o \ 223 acpidev_cpu.o \ 224 acpidev_dr.o \ 225 acpidev_memory.o \ 226 acpidev_pci.o \ 227 acpidev_resource.o \ 228 acpidev_usbport.o \ 229 acpidev_util.o 230 231DRMACH_ACPI_OBJS += drmach_acpi.o dr_util.o drmach_err.o 232 233DR_OBJS += dr.o dr_cpu.o dr_err.o dr_io.o dr_mem_acpi.o dr_quiesce.o dr_util.o 234 235ROOTNEX_OBJS += rootnex.o immu.o immu_dmar.o immu_dvma.o \ 236 immu_intrmap.o immu_qinv.o immu_regs.o 237 238TZMON_OBJS += tzmon.o 239UPPC_OBJS += uppc.o psm_common.o 240XSVC_OBJS += xsvc.o 241AMD_IOMMU_OBJS += amd_iommu.o amd_iommu_impl.o amd_iommu_acpi.o \ 242 amd_iommu_cmd.o amd_iommu_log.o amd_iommu_page_tables.o 243 244# 245# Build up defines and paths. 246# 247ALL_DEFS += -Di86pc 248INC_PATH += -I$(UTSBASE)/i86pc -I$(SRC)/common 249INC_PATH += -I$(UTSBASE)/i86xpv -I$(UTSBASE)/common/xen 250 251# 252# Since the assym files are derived, the dependencies must be explicit for 253# all files including this file. (This is only actually required in the 254# instance when the .nse_depinfo file does not exist.) 255# 256 257ASSYM_DEPS += \ 258 copy.o \ 259 desctbls_asm.o \ 260 ddi_i86_asm.o \ 261 exception.o \ 262 fast_trap_asm.o \ 263 float.o \ 264 i86_subr.o \ 265 interrupt.o \ 266 lock_prim.o \ 267 locore.o \ 268 mpcore.o \ 269 sseblk.o \ 270 swtch.o \ 271 syscall_asm.o \ 272 syscall_asm_amd64.o \ 273 kpti_trampolines.o \ 274 cpr_wakecode.o 275 276CPR_IMPL_OBJS = cpr_impl.o cpr_wakecode.o 277 278$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%): $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h 279