xref: /titanic_51/usr/src/uts/i86pc/Makefile.files (revision e4b86885570d77af552e9cf94f142f4d744fb8c8)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
54ab75253Smrj# Common Development and Distribution License (the "License").
64ab75253Smrj# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
214ab75253Smrj
227c478bd9Sstevel@tonic-gate#
23eae2e508Skrishnae# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
26fb9f9b97Skupfer#	This Makefile defines file modules in the directory uts/i86pc
27fb9f9b97Skupfer#	and its children. These are the source files which are i86pc
287c478bd9Sstevel@tonic-gate#	"implementation architecture" dependent.
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gate#	object lists
337c478bd9Sstevel@tonic-gate#
347c478bd9Sstevel@tonic-gateCORE_OBJS +=			\
352df1fe9cSrandyf	acpi_stubs.o		\
367c478bd9Sstevel@tonic-gate	biosdisk.o		\
37ae115bc7Smrj	bios_call.o		\
387c478bd9Sstevel@tonic-gate	cbe.o			\
397aec1d6eScindi	cmi.o			\
4020c794b3Sgavinm	cmi_hw.o		\
4120c794b3Sgavinm	cms.o			\
427c478bd9Sstevel@tonic-gate	confunix.o		\
437c478bd9Sstevel@tonic-gate	cpuid.o			\
44*e4b86885SCheng Sean Ye	cpuid_subr.o		\
455cff7825Smh27603	cpupm.o			\
467c478bd9Sstevel@tonic-gate	dis_tables.o		\
477c478bd9Sstevel@tonic-gate	ddi_impl.o		\
487c478bd9Sstevel@tonic-gate	dtrace_subr.o		\
497c478bd9Sstevel@tonic-gate	dvma.o			\
50ae115bc7Smrj	fpu_subr.o		\
51ae115bc7Smrj	fakebop.o		\
527c478bd9Sstevel@tonic-gate	graphics.o		\
53ae115bc7Smrj	hardclk.o		\
547c478bd9Sstevel@tonic-gate	hat_i86.o		\
557c478bd9Sstevel@tonic-gate	hat_kdi.o		\
567c478bd9Sstevel@tonic-gate	hment.o			\
57ae115bc7Smrj	hold_page.o		\
587c478bd9Sstevel@tonic-gate	hrtimers.o		\
597c478bd9Sstevel@tonic-gate	htable.o		\
60ae115bc7Smrj	i86_mmu.o		\
617c478bd9Sstevel@tonic-gate	instr_size.o		\
627c478bd9Sstevel@tonic-gate	intr.o			\
63ae115bc7Smrj	kboot_mmu.o		\
64ae115bc7Smrj	kdi_subr.o		\
65ae115bc7Smrj	kdi_idt.o		\
66ae115bc7Smrj	kdi_idthdl.o		\
67ae115bc7Smrj	kdi_asm.o		\
687c478bd9Sstevel@tonic-gate	lgrpplat.o		\
697c478bd9Sstevel@tonic-gate	mach_kdi.o		\
707c478bd9Sstevel@tonic-gate	mach_sysconfig.o	\
717c478bd9Sstevel@tonic-gate	machdep.o		\
727c478bd9Sstevel@tonic-gate	mem_config_stubs.o	\
737c478bd9Sstevel@tonic-gate	memnode.o		\
742449e17fSsherrym	microcode.o		\
75843e1988Sjohnlev	microfind.o		\
767c478bd9Sstevel@tonic-gate	mlsetup.o		\
777c478bd9Sstevel@tonic-gate	mp_call.o		\
787c478bd9Sstevel@tonic-gate	mp_implfuncs.o		\
797c478bd9Sstevel@tonic-gate	mp_machdep.o		\
80ae115bc7Smrj	mp_pc.o			\
817c478bd9Sstevel@tonic-gate	mp_startup.o		\
827c478bd9Sstevel@tonic-gate	memscrub.o		\
837c478bd9Sstevel@tonic-gate	mpcore.o		\
847c478bd9Sstevel@tonic-gate	notes.o			\
8575bcd456Sjg	pci_bios.o		\
86c88420b3Sdmick	pci_cfgspace.o		\
87c88420b3Sdmick	pci_mech1.o		\
88c88420b3Sdmick	pci_mech2.o		\
89c88420b3Sdmick	pci_neptune.o		\
90c88420b3Sdmick	pci_orion.o		\
917c478bd9Sstevel@tonic-gate	pmem.o			\
927c478bd9Sstevel@tonic-gate	ppage.o			\
937c478bd9Sstevel@tonic-gate	startup.o		\
947c478bd9Sstevel@tonic-gate	timestamp.o		\
95ae115bc7Smrj	todpc_subr.o		\
967c478bd9Sstevel@tonic-gate	trap.o			\
977c478bd9Sstevel@tonic-gate	vm_machdep.o		\
987c478bd9Sstevel@tonic-gate	x_call.o
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gate#
10184ab085aSmws#	Add the SMBIOS subsystem object files directly to the list of objects
10284ab085aSmws#	built into unix itself; this is all common code except for smb_dev.c.
10384ab085aSmws#
10484ab085aSmwsCORE_OBJS += $(SMBIOS_OBJS)
10584ab085aSmws
10684ab085aSmws#
107ae115bc7Smrj# These get compiled twice:
108ae115bc7Smrj# - once in the dboot (direct boot) identity mapped code
109ae115bc7Smrj# - once for use during early startup in unix
110ae115bc7Smrj#
111ae115bc7SmrjBOOT_DRIVER_OBJS =		\
112ae115bc7Smrj	boot_console.o		\
113ae115bc7Smrj	boot_keyboard.o		\
114ae115bc7Smrj	boot_keyboard_table.o	\
115ae115bc7Smrj	boot_vga.o		\
116ae115bc7Smrj	boot_mmu.o
117ae115bc7Smrj
118ae115bc7SmrjCORE_OBJS += $(BOOT_DRIVER_OBJS)
119ae115bc7Smrj
120ae115bc7Smrj#
1217c478bd9Sstevel@tonic-gate#	locore.o is special. It must be the first file relocated so that it
1227c478bd9Sstevel@tonic-gate#	it is relocated just where its name implies.
1237c478bd9Sstevel@tonic-gate#
1247c478bd9Sstevel@tonic-gateSPECIAL_OBJS_32 +=		\
1257c478bd9Sstevel@tonic-gate	locore.o		\
1267c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
1277c478bd9Sstevel@tonic-gate	interrupt.o		\
1287c478bd9Sstevel@tonic-gate	syscall_asm.o
1297c478bd9Sstevel@tonic-gate
1307c478bd9Sstevel@tonic-gateSPECIAL_OBJS_64 +=		\
1317c478bd9Sstevel@tonic-gate	locore.o		\
1327c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
1337c478bd9Sstevel@tonic-gate	interrupt.o		\
1347c478bd9Sstevel@tonic-gate	syscall_asm_amd64.o
1357c478bd9Sstevel@tonic-gate
1367c478bd9Sstevel@tonic-gateSPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
1377c478bd9Sstevel@tonic-gate
1387c478bd9Sstevel@tonic-gate#
139ae115bc7Smrj# Objects that get compiled into the identity mapped PT_LOAD section of unix
140ae115bc7Smrj# to handle the earliest part of booting.
1417c478bd9Sstevel@tonic-gate#
142ae115bc7SmrjDBOOT_OBJS_32 =
143ae115bc7Smrj
144ae115bc7SmrjDBOOT_OBJS_64 += dboot_elfload.o
145ae115bc7Smrj
146ae115bc7SmrjDBOOT_OBJS +=			\
147843e1988Sjohnlev	dboot_asm.o		\
148ae115bc7Smrj	dboot_grub.o		\
149ae115bc7Smrj	dboot_printf.o		\
150843e1988Sjohnlev	dboot_startkern.o	\
151ae115bc7Smrj	memcpy.o		\
152ae115bc7Smrj	memset.o		\
153ae115bc7Smrj	muldiv.o		\
154ae115bc7Smrj	string.o		\
155ae115bc7Smrj	$(BOOT_DRIVER_OBJS)	\
156ae115bc7Smrj	$(DBOOT_OBJS_$(CLASS))
157ae115bc7Smrj
158ae115bc7Smrj#
159ae115bc7Smrj#			driver and misc modules
160ae115bc7Smrj#
161ae115bc7SmrjGFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
162ae115bc7Smrj			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
16317169044SbrutusIOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
1647c478bd9Sstevel@tonic-gateISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
165eae2e508SkrishnaePCI_E_MISC_OBJS += pcie.o pcie_fault.o
166ae115bc7SmrjPCI_E_NEXUS_OBJS += npe.o npe_misc.o
167ae115bc7SmrjPCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
1687a364d25SschwartzPCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
169b6917abeSmishraPCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o mp_platform_common.o
170507c3241Smlf
171d2ec54f7SphitranACPI_DRV_OBJS	+= acpi_drv.o
1727aec1d6eScindi
1737f606aceSMark HaywoodCPUDRV_OBJS	+= \
1747f606aceSMark Haywood	cpudrv.o \
1757f606aceSMark Haywood	cpudrv_amd.o \
1767f606aceSMark Haywood	cpudrv_intel.o \
1777f606aceSMark Haywood	cpudrv_mach.o \
1787f606aceSMark Haywood	cpudrv_throttle.o \
1797f606aceSMark Haywood	cpu_acpi.o \
1807f606aceSMark Haywood	speedstep.o \
1817f606aceSMark Haywood	pwrnow.o
1827f606aceSMark Haywood
1835cff7825Smh27603PPM_OBJS	+= ppm_subr.o ppm.o ppm_plat.o
1845cff7825Smh27603
1852df1fe9cSrandyfACPIPPM_OBJS	+= acpippm.o acpisleep.o
1862df1fe9cSrandyf
187ae115bc7SmrjROOTNEX_OBJS += rootnex.o
188ae115bc7SmrjTZMON_OBJS	+= tzmon.o
1897c478bd9Sstevel@tonic-gateUPPC_OBJS += uppc.o psm_common.o
190ae115bc7SmrjXSVC_OBJS += xsvc.o
191fc1821feSrugrat
1927c478bd9Sstevel@tonic-gate#
1937c478bd9Sstevel@tonic-gate#	Build up defines and paths.
1947c478bd9Sstevel@tonic-gate#
1957c478bd9Sstevel@tonic-gateALL_DEFS	+= -Di86pc
196ae115bc7SmrjINC_PATH	+= -I$(UTSBASE)/i86pc -I$(SRC)/common
1977c478bd9Sstevel@tonic-gate
1987c478bd9Sstevel@tonic-gate#
199ae115bc7Smrj# Since the assym files are derived, the dependencies must be explicit for
2007c478bd9Sstevel@tonic-gate# all files including this file. (This is only actually required in the
2017c478bd9Sstevel@tonic-gate# instance when the .nse_depinfo file does not exist.) It may seem that
2027c478bd9Sstevel@tonic-gate# the lint targets should also have a similar dependency, but they don't
2037c478bd9Sstevel@tonic-gate# since only C headers are included when #defined(__lint) is true.
2047c478bd9Sstevel@tonic-gate#
205ae115bc7Smrj
2067c478bd9Sstevel@tonic-gateASSYM_DEPS      += 		\
2077c478bd9Sstevel@tonic-gate	copy.o			\
2087c478bd9Sstevel@tonic-gate	desctbls_asm.o		\
2097c478bd9Sstevel@tonic-gate	ddi_i86_asm.o		\
2107c478bd9Sstevel@tonic-gate	exception.o		\
2117c478bd9Sstevel@tonic-gate	fast_trap_asm.o		\
2127c478bd9Sstevel@tonic-gate	float.o			\
2137c478bd9Sstevel@tonic-gate	i86_subr.o		\
2147c478bd9Sstevel@tonic-gate	interrupt.o		\
2157c478bd9Sstevel@tonic-gate	lock_prim.o		\
2167c478bd9Sstevel@tonic-gate	locore.o		\
2177c478bd9Sstevel@tonic-gate	mpcore.o		\
2187c478bd9Sstevel@tonic-gate	sseblk.o		\
2197c478bd9Sstevel@tonic-gate	swtch.o			\
2207c478bd9Sstevel@tonic-gate	syscall_asm.o		\
2212df1fe9cSrandyf	syscall_asm_amd64.o	\
2222df1fe9cSrandyf	cpr_wakecode.o
2232df1fe9cSrandyf
2242df1fe9cSrandyfCPR_IMPL_OBJS	= cpr_impl.o	cpr_wakecode.o
225ae115bc7Smrj
226ae115bc7Smrj$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
227ae115bc7Smrj
228ae115bc7SmrjASSYM_DEPS += kdi_asm.o
229