summaryrefslogtreecommitdiff
path: root/usr/src/uts/i86pc/Makefile.files
blob: 064cda85489b581e0ee7b74c8edefd04425c6dcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Copyright (c) 2010, Intel Corporation.
# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2020 Joyent, Inc.
# Copyright 2022 Oxide Computer Company
# Copyright 2021 Jason King
#
#	This Makefile defines file modules in the directory uts/i86pc
#	and its children. These are the source files which are i86pc
#	"implementation architecture" dependent.
#

#
#	object lists
#
CORE_OBJS +=			\
	acpi_stubs.o		\
	biosdisk.o		\
	bios_call.o		\
	cbe.o			\
	cmi.o			\
	cmi_hw.o		\
	cms.o			\
	comm_page.o		\
	confunix.o		\
	cpu_idle.o		\
	cpuid.o			\
	cpuid_subr.o		\
	cpupm.o			\
	cpupm_mach.o		\
	cpupm_amd.o		\
	cpupm_intel.o		\
	cpupm_throttle.o	\
	cpu_acpi.o		\
	dis_tables.o		\
	ddi_impl.o		\
	dtrace_subr.o		\
	dvma.o			\
	fpu_subr.o		\
	fakebop.o		\
	fastboot.o		\
	fb_swtch.o		\
	graphics.o		\
	hardclk.o		\
	hat_i86.o		\
	hat_kdi.o		\
	hment.o			\
	hold_page.o		\
	hpet_acpi.o		\
	hrtimers.o		\
	htable.o		\
	hypercall.o		\
	hypersubr.o		\
	i86_mmu.o		\
	ibft.o			\
	instr_size.o		\
	intr.o			\
	kboot_mmu.o		\
	kdi_idt.o		\
	kdi_idthdl.o		\
	kdi_asm.o		\
	lgrpplat.o		\
	mach_kdi.o		\
	mach_sysconfig.o	\
	machdep.o		\
	md_clear.o		\
	mem_config.o		\
	mem_config_stubs.o	\
	mem_config_arch.o	\
	memlist_new.o		\
	memnode.o		\
	microcode.o		\
	mlsetup.o		\
	mp_call.o		\
	mp_implfuncs.o		\
	mp_machdep.o		\
	mp_pc.o			\
	mp_startup.o		\
	memscrub.o		\
	mpcore.o		\
	notes.o			\
	pci_bios.o		\
	pci_cfgacc.o		\
	pci_cfgacc_x86.o	\
	pci_cfgspace.o		\
	pci_mech1.o		\
	pci_mech1_amd.o		\
	pci_mech2.o		\
	pci_neptune.o		\
	pci_orion.o		\
	pmem.o			\
	ppage.o			\
	pwrnow.o		\
	speedstep.o		\
	ssp.o			\
	startup.o		\
	timestamp.o		\
	todpc_subr.o		\
	tscc_hpet.o		\
	tscc_pit.o		\
	tscc_vmware.o		\
	trap.o			\
	turbo.o			\
	vm_machdep.o		\
	xpv_platform.o		\
	x_call.o

#
#	Add the SMBIOS subsystem object files directly to the list of objects
#	built into unix itself; this is all common code except for smb_dev.c.
#
CORE_OBJS += $(SMBIOS_OBJS)

#
# These get compiled twice:
# - once in the dboot (direct boot) identity mapped code
# - once for use during early startup in unix
#
BOOT_DRIVER_OBJS =		\
	boot_console.o		\
	boot_keyboard.o		\
	boot_keyboard_table.o	\
	boot_vga.o		\
	boot_fb.o		\
	boot_mmu.o		\
	dboot_multiboot2.o	\
	$(FONT_OBJS)

CORE_OBJS += $(BOOT_DRIVER_OBJS)

#
#	locore.o is special. It must be the first file relocated so that it
#	it is relocated just where its name implies.
#
SPECIAL_OBJS +=			\
	locore.o		\
	fast_trap_asm.o		\
	interrupt.o		\
	syscall_asm_amd64.o	\
	kpti_trampolines.o

#
# Objects that get compiled into the identity mapped PT_LOAD section of unix
# to handle the earliest part of booting.
#
DBOOT_OBJS_32 =

DBOOT_OBJS_64 += dboot_elfload.o

DBOOT_OBJS +=			\
	dboot_asm.o		\
	dboot_grub.o		\
	dboot_printf.o		\
	dboot_startkern.o	\
	memcpy.o		\
	memset.o		\
	muldiv.o		\
	sha1.o			\
	string.o		\
	$(BOOT_DRIVER_OBJS)	\
	$(DBOOT_OBJS_$(CLASS))

#
#			driver and misc modules
#
GFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o \
			   gfxp_fb.o gfxp_bitmap.o
FIPE_OBJS += fipe_drv.o fipe_pm.o
IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
PCIE_MISC_OBJS += pcie_acpi.o pciehpc_acpi.o pcie_x86.o
PCI_E_NEXUS_OBJS += npe.o npe_misc.o
PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
PCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o	\
			mp_platform_common.o mp_platform_misc.o		\
			apic_common.o apic_timer.o
APIX_OBJS += apix.o apic_regops.o psm_common.o apix_intr.o apix_utils.o \
		apix_irm.o mp_platform_common.o apic_common.o \
		apic_timer.o apix_regops.o


ACPI_DRV_OBJS	+= acpi_drv.o acpi_video.o
ACPINEX_OBJS	+= acpinex_drv.o acpinex_event.o

CPUDRV_OBJS	+= \
	cpudrv.o \
	cpudrv_mach.o

PPM_OBJS	+= ppm_subr.o ppm.o ppm_plat.o

ACPIPPM_OBJS	+= acpippm.o acpisleep.o
ACPIDEV_OBJS += acpidev_drv.o \
	acpidev_scope.o acpidev_device.o \
	acpidev_container.o \
	acpidev_cpu.o \
	acpidev_dr.o \
	acpidev_memory.o \
	acpidev_pci.o \
	acpidev_resource.o \
	acpidev_usbport.o \
	acpidev_util.o

DRMACH_ACPI_OBJS += drmach_acpi.o dr_util.o drmach_err.o

DR_OBJS	+= dr.o dr_cpu.o dr_err.o dr_io.o dr_mem_acpi.o dr_quiesce.o dr_util.o

ROOTNEX_OBJS += rootnex.o immu.o immu_dmar.o immu_dvma.o \
		immu_intrmap.o immu_qinv.o immu_regs.o

TZMON_OBJS	+= tzmon.o
UPPC_OBJS += uppc.o psm_common.o
XSVC_OBJS += xsvc.o
AMD_IOMMU_OBJS +=	amd_iommu.o amd_iommu_impl.o amd_iommu_acpi.o \
			amd_iommu_cmd.o amd_iommu_log.o amd_iommu_page_tables.o

PCI_PRD_OBJS += pci_prd_i86pc.o pci_memlist.o

#
#	Build up defines and paths.
#
ALL_DEFS	+= -Di86pc
INC_PATH	+= -I$(UTSBASE)/i86pc -I$(SRC)/common
INC_PATH	+= -I$(UTSBASE)/i86xpv -I$(UTSBASE)/common/xen

#
# Since the assym files are derived, the dependencies must be explicit for
# all files including this file. (This is only actually required in the
# instance when the .nse_depinfo file does not exist.)
#

ASSYM_DEPS      +=		\
	copy.o			\
	desctbls_asm.o		\
	ddi_i86_asm.o		\
	exception.o		\
	fast_trap_asm.o		\
	float.o			\
	i86_subr.o		\
	interrupt.o		\
	lock_prim.o		\
	locore.o		\
	mpcore.o		\
	sseblk.o		\
	swtch.o			\
	syscall_asm_amd64.o	\
	kpti_trampolines.o	\
	cpr_wakecode.o

CPR_IMPL_OBJS	= cpr_impl.o	cpr_wakecode.o

$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h