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