aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# CDDL HEADER START
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# The contents of this file are subject to the terms of the
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# Common Development and Distribution License (the "License").
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews# You may not use this file except in compliance with the License.
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# If applicable, add the following below this CDDL HEADER, with the
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# CDDL HEADER END
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
c718d15a9a95054ee3c71540c02335426071fc6dMark AndrewsROOT_MISC_DIR = $(ROOT)/platform/sun4v/kernel/misc
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsSTANDLIBS += $(ROOT)/usr/lib/sparcv9/libstanddisasm.so
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews $(FINDFP) -x kaif_resume -x kaif_trap_common $@
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Uncomment the following line to enable trap accounting. A DTLB translation
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# will be added for the trap table, and each handler installed by KMDB will use
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# its padding to keep a trap count. See kaif_handlers.s.
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark Andrews# NOTE: not currently supported by the sun4v fast miss handlers. See
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# ../../../sparc/v9/kmdb/kaif_handlers.s to verify before use.
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews#TRAPCOUNT = -DKMDB_TRAPCOUNT
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCPPFLAGS += -I../../../sparc/mdb -I.. -I$(SRC)/uts/sun4 -I$(SRC)/uts/sun4v
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsCPPFLAGS += -I$(SRC)/cmd/mdb/sparc/v9 -I$(SRC)/cmd/mdb/sparc/v9/kmdb
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsASFLAGS += -xarch=v9v -I$(SRC)/uts/sun4 -I$(SRC)/uts/sun4v $(TRAPCOUNT)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsASFLAGS += -I$(SRC)/cmd/mdb/sparc/v9 -I$(SRC)/cmd/mdb/sparc/v9/kmdb
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews $(LINT) $(ALLLINTFLAGS) $(KMDBOBJS:%.o=%.ln) $(PROMOBJS:%.o=%.ln)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(OFFSETS_CREATE) <../../../sparc/kmdb/kaif_off.in >$@
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrewskmdb_context_off.h: ../../../sparc/kmdb/kmdb_context_off.in
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(OFFSETS_CREATE) <../../../sparc/kmdb/kmdb_context_off.in >$@
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# Dynamic rules for object construction
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Installation targets