xref: /titanic_52/usr/src/uts/i86xpv/Makefile.files (revision 843e19887f64dde75055cf8842fc4db2171eff45)
1*843e1988Sjohnlev#
2*843e1988Sjohnlev# CDDL HEADER START
3*843e1988Sjohnlev#
4*843e1988Sjohnlev# The contents of this file are subject to the terms of the
5*843e1988Sjohnlev# Common Development and Distribution License (the "License").
6*843e1988Sjohnlev# You may not use this file except in compliance with the License.
7*843e1988Sjohnlev#
8*843e1988Sjohnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*843e1988Sjohnlev# or http://www.opensolaris.org/os/licensing.
10*843e1988Sjohnlev# See the License for the specific language governing permissions
11*843e1988Sjohnlev# and limitations under the License.
12*843e1988Sjohnlev#
13*843e1988Sjohnlev# When distributing Covered Code, include this CDDL HEADER in each
14*843e1988Sjohnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*843e1988Sjohnlev# If applicable, add the following below this CDDL HEADER, with the
16*843e1988Sjohnlev# fields enclosed by brackets "[]" replaced with your own identifying
17*843e1988Sjohnlev# information: Portions Copyright [yyyy] [name of copyright owner]
18*843e1988Sjohnlev#
19*843e1988Sjohnlev# CDDL HEADER END
20*843e1988Sjohnlev#
21*843e1988Sjohnlev
22*843e1988Sjohnlev#
23*843e1988Sjohnlev# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*843e1988Sjohnlev# Use is subject to license terms.
25*843e1988Sjohnlev#
26*843e1988Sjohnlev#ident	"%Z%%M%	%I%	%E% SMI"
27*843e1988Sjohnlev#
28*843e1988Sjohnlev#	This Makefile defines file modules in the directory uts/i86xpv
29*843e1988Sjohnlev#	and its children. These are the source files which are i86xpv
30*843e1988Sjohnlev#	"implementation architecture" dependent.
31*843e1988Sjohnlev#
32*843e1988Sjohnlev
33*843e1988Sjohnlev#
34*843e1988Sjohnlev#	object lists
35*843e1988Sjohnlev#
36*843e1988SjohnlevCORE_OBJS +=			\
37*843e1988Sjohnlev	balloon.o		\
38*843e1988Sjohnlev	beeper.o		\
39*843e1988Sjohnlev	biosdisk.o		\
40*843e1988Sjohnlev	cbe.o			\
41*843e1988Sjohnlev	cmi.o			\
42*843e1988Sjohnlev	confunix.o		\
43*843e1988Sjohnlev	cpuid.o			\
44*843e1988Sjohnlev	cpupm.o			\
45*843e1988Sjohnlev	dis_tables.o		\
46*843e1988Sjohnlev	ddi_impl.o		\
47*843e1988Sjohnlev	dtrace_subr.o		\
48*843e1988Sjohnlev	dvma.o			\
49*843e1988Sjohnlev	fakebop.o		\
50*843e1988Sjohnlev	fpu_subr.o		\
51*843e1988Sjohnlev	graphics.o		\
52*843e1988Sjohnlev	hardclk.o		\
53*843e1988Sjohnlev	hat_i86.o		\
54*843e1988Sjohnlev	hat_kdi.o		\
55*843e1988Sjohnlev	hment.o			\
56*843e1988Sjohnlev	hold_page.o		\
57*843e1988Sjohnlev	hrtimers.o		\
58*843e1988Sjohnlev	htable.o		\
59*843e1988Sjohnlev	i86_mmu.o		\
60*843e1988Sjohnlev	instr_size.o		\
61*843e1988Sjohnlev	intr.o			\
62*843e1988Sjohnlev	kboot_mmu.o		\
63*843e1988Sjohnlev	kdi_subr.o		\
64*843e1988Sjohnlev	kdi_idt.o		\
65*843e1988Sjohnlev	kdi_idthdl.o		\
66*843e1988Sjohnlev	kdi_asm.o		\
67*843e1988Sjohnlev	lgrpplat.o		\
68*843e1988Sjohnlev	mach_kdi.o		\
69*843e1988Sjohnlev	mach_sysconfig.o	\
70*843e1988Sjohnlev	machdep.o		\
71*843e1988Sjohnlev	mem_config_stubs.o	\
72*843e1988Sjohnlev	memnode.o		\
73*843e1988Sjohnlev	microcode.o		\
74*843e1988Sjohnlev	mlsetup.o		\
75*843e1988Sjohnlev	mp_call.o		\
76*843e1988Sjohnlev	mp_implfuncs.o		\
77*843e1988Sjohnlev	mp_machdep.o		\
78*843e1988Sjohnlev	mp_startup.o		\
79*843e1988Sjohnlev	memscrub.o		\
80*843e1988Sjohnlev	notes.o			\
81*843e1988Sjohnlev	pci_bios.o		\
82*843e1988Sjohnlev	pci_cfgspace.o		\
83*843e1988Sjohnlev	pci_mech1.o		\
84*843e1988Sjohnlev	pci_mech2.o		\
85*843e1988Sjohnlev	pci_neptune.o		\
86*843e1988Sjohnlev	pci_orion.o		\
87*843e1988Sjohnlev	pmem.o			\
88*843e1988Sjohnlev	ppage.o			\
89*843e1988Sjohnlev	startup.o		\
90*843e1988Sjohnlev	xpv_timestamp.o		\
91*843e1988Sjohnlev	todpc_subr.o		\
92*843e1988Sjohnlev	trap.o			\
93*843e1988Sjohnlev	vm_machdep.o		\
94*843e1988Sjohnlev	x_call.o
95*843e1988Sjohnlev
96*843e1988Sjohnlev#
97*843e1988Sjohnlev#	Add the SMBIOS subsystem object files directly to the list of objects
98*843e1988Sjohnlev#	built into unix itself; this is all common code except for smb_dev.c.
99*843e1988Sjohnlev#
100*843e1988SjohnlevCORE_OBJS += $(SMBIOS_OBJS)
101*843e1988Sjohnlev
102*843e1988Sjohnlev#
103*843e1988Sjohnlev# These get compiled twice:
104*843e1988Sjohnlev# - once in the dboot (direct boot) identity mapped code
105*843e1988Sjohnlev# - once for use during early startup in unix
106*843e1988Sjohnlev#
107*843e1988SjohnlevBOOT_DRIVER_OBJS =		\
108*843e1988Sjohnlev	boot_console.o		\
109*843e1988Sjohnlev	boot_keyboard.o		\
110*843e1988Sjohnlev	boot_keyboard_table.o	\
111*843e1988Sjohnlev	boot_mmu.o		\
112*843e1988Sjohnlev	boot_vga.o		\
113*843e1988Sjohnlev	boot_xconsole.o
114*843e1988Sjohnlev
115*843e1988SjohnlevCORE_OBJS += $(BOOT_DRIVER_OBJS)
116*843e1988Sjohnlev
117*843e1988Sjohnlev#
118*843e1988Sjohnlev# Extra XEN files separated out for now.
119*843e1988Sjohnlev#
120*843e1988SjohnlevCORE_OBJS +=			\
121*843e1988Sjohnlev	cpr_driver.o		\
122*843e1988Sjohnlev	evtchn.o		\
123*843e1988Sjohnlev	gnttab.o		\
124*843e1988Sjohnlev	hypercall.o		\
125*843e1988Sjohnlev	hyperevent.o		\
126*843e1988Sjohnlev	hypersubr.o		\
127*843e1988Sjohnlev	mp_xen.o		\
128*843e1988Sjohnlev	panic_asm.o		\
129*843e1988Sjohnlev	xenguest.o		\
130*843e1988Sjohnlev	xenbus_client.o		\
131*843e1988Sjohnlev	xenbus_comms.o		\
132*843e1988Sjohnlev	xenbus_probe.o		\
133*843e1988Sjohnlev	xenbus_xs.o		\
134*843e1988Sjohnlev	xen_machdep.o		\
135*843e1988Sjohnlev	xen_mmu.o		\
136*843e1988Sjohnlev	xpv_panic.o		\
137*843e1988Sjohnlev	xvdi.o
138*843e1988Sjohnlev
139*843e1988Sjohnlev#
140*843e1988Sjohnlev#	locore.o is special. It must be the first file relocated so that it
141*843e1988Sjohnlev#	it is relocated just where its name implies.
142*843e1988Sjohnlev#
143*843e1988SjohnlevSPECIAL_OBJS_32 +=		\
144*843e1988Sjohnlev	locore.o		\
145*843e1988Sjohnlev	fast_trap_asm.o		\
146*843e1988Sjohnlev	interrupt.o		\
147*843e1988Sjohnlev	syscall_asm.o
148*843e1988Sjohnlev
149*843e1988SjohnlevSPECIAL_OBJS_64 +=		\
150*843e1988Sjohnlev	locore.o		\
151*843e1988Sjohnlev	fast_trap_asm.o		\
152*843e1988Sjohnlev	interrupt.o		\
153*843e1988Sjohnlev	syscall_asm_amd64.o
154*843e1988Sjohnlev
155*843e1988SjohnlevSPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
156*843e1988Sjohnlev
157*843e1988Sjohnlev#
158*843e1988Sjohnlev# object files used to boot into full kernel
159*843e1988Sjohnlev#
160*843e1988SjohnlevDBOOT_OBJS_32 =	muldiv.o
161*843e1988Sjohnlev
162*843e1988SjohnlevDBOOT_OBJS_64 =
163*843e1988Sjohnlev
164*843e1988SjohnlevDBOOT_OBJS +=			\
165*843e1988Sjohnlev	dboot_asm.o		\
166*843e1988Sjohnlev	dboot_printf.o		\
167*843e1988Sjohnlev	dboot_startkern.o	\
168*843e1988Sjohnlev	dboot_xen.o		\
169*843e1988Sjohnlev	hypercall.o		\
170*843e1988Sjohnlev	hypersubr.o		\
171*843e1988Sjohnlev	memcpy.o		\
172*843e1988Sjohnlev	memset.o		\
173*843e1988Sjohnlev	string.o		\
174*843e1988Sjohnlev	$(BOOT_DRIVER_OBJS)	\
175*843e1988Sjohnlev	$(DBOOT_OBJS_$(CLASS))
176*843e1988Sjohnlev
177*843e1988Sjohnlev#
178*843e1988Sjohnlev#			driver & misc modules
179*843e1988Sjohnlev#
180*843e1988SjohnlevISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
181*843e1988SjohnlevDOMCAPS_OBJS += domcaps.o
182*843e1988SjohnlevBALLOON_OBJS += balloon_drv.o
183*843e1988SjohnlevEVTCHN_OBJS += evtchn_dev.o
184*843e1988SjohnlevGFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \
185*843e1988Sjohnlev		    gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
186*843e1988SjohnlevPCI_E_MISC_OBJS += pcie_error.o
187*843e1988SjohnlevPCI_E_NEXUS_OBJS += npe.o npe_misc.o
188*843e1988SjohnlevPCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
189*843e1988SjohnlevPCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
190*843e1988SjohnlevPRIVCMD_OBJS += seg_mf.o privcmd.o privcmd_hcall.o
191*843e1988SjohnlevROOTNEX_OBJS += rootnex.o
192*843e1988SjohnlevXPVTOD_OBJS += xpvtod.o
193*843e1988SjohnlevXPV_AUTOCONFIG_OBJS += xpv_autoconfig.o
194*843e1988SjohnlevXPV_PSM_OBJS += xpv_psm.o mp_platform_common.o apic_introp.o psm_common.o
195*843e1988SjohnlevXENBUS_OBJS += xenbus_dev.o
196*843e1988SjohnlevXENCONS_OBJS += xencons.o
197*843e1988SjohnlevXPVD_OBJS += xpvd.o
198*843e1988SjohnlevXNB_OBJS += xnb.o
199*843e1988SjohnlevXNBE_OBJS += xnbe.o
200*843e1988SjohnlevXNBO_OBJS += xnbo.o
201*843e1988SjohnlevXNBU_OBJS += xnbu.o
202*843e1988SjohnlevXNF_OBJS += xnf.o
203*843e1988SjohnlevXSVC_OBJS += xsvc.o
204*843e1988SjohnlevXDF_OBJS += xdf.o
205*843e1988SjohnlevXDB_OBJS += xdb.o
206*843e1988Sjohnlev
207*843e1988Sjohnlev#
208*843e1988Sjohnlev#	Build up defines and paths.
209*843e1988Sjohnlev#
210*843e1988SjohnlevINC_PATH	+= -I$(UTSBASE)/i86xpv -I$(UTSBASE)/i86pc -I$(SRC)/common
211*843e1988Sjohnlev
212*843e1988Sjohnlev#
213*843e1988Sjohnlev# Since the assym files are derived, the dependencies must be explicit for
214*843e1988Sjohnlev# all files including this file. (This is only actually required in the
215*843e1988Sjohnlev# instance when the .nse_depinfo file does not exist.) It may seem that
216*843e1988Sjohnlev# the lint targets should also have a similar dependency, but they don't
217*843e1988Sjohnlev# since only C headers are included when #defined(__lint) is true.
218*843e1988Sjohnlev#
219*843e1988Sjohnlev
220*843e1988SjohnlevASSYM_DEPS      += 		\
221*843e1988Sjohnlev	copy.o			\
222*843e1988Sjohnlev	desctbls_asm.o		\
223*843e1988Sjohnlev	ddi_i86_asm.o		\
224*843e1988Sjohnlev	exception.o		\
225*843e1988Sjohnlev	fast_trap_asm.o		\
226*843e1988Sjohnlev	float.o			\
227*843e1988Sjohnlev	hyperevent.o		\
228*843e1988Sjohnlev	i86_subr.o		\
229*843e1988Sjohnlev	kdi_asm.o		\
230*843e1988Sjohnlev	interrupt.o		\
231*843e1988Sjohnlev	lock_prim.o		\
232*843e1988Sjohnlev	locore.o		\
233*843e1988Sjohnlev	panic_asm.o		\
234*843e1988Sjohnlev	sseblk.o		\
235*843e1988Sjohnlev	swtch.o			\
236*843e1988Sjohnlev	syscall_asm.o		\
237*843e1988Sjohnlev	syscall_asm_amd64.o
238*843e1988Sjohnlev
239*843e1988Sjohnlev$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
240*843e1988Sjohnlev
241*843e1988SjohnlevASSYM_DEPS += kdi_asm.o
242