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