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