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