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