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