xref: /titanic_44/usr/src/uts/sun4u/Makefile.workarounds (revision c28749e97052f09388969427adf7df641cdcdc22)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# uts/sun4u/Makefile.workarounds
24#
25# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28#ident	"%Z%%M%	%I%	%E% SMI"
29#
30#
31#	This makefile contains workaround defines to be shared
32#	by Makefile.sun4u and the sun4u genunix Makefile.
33#
34
35# Define the minimum cpu rev this kernel will support
36# (min is 0x11 with all workarounds enabled)
37WORKAROUND_DEFS = -DSPITFIRE_MINREV_SUPPORTED=0x21
38
39# The following are required to support Spitfire <= 2.0
40# WORKAROUND_DEFS += -DSF_ERRATA_23	# call causes illegal-insn
41
42# The following are required to support Spitfire <= 2.1
43WORKAROUND_DEFS += -DSF_ERRATA_30	# call causes fp-disabled
44
45# The following are required to support all(?) Blackbirds
46WORKAROUND_DEFS += -DBB_ERRATA_1	# writes to TICK_COMPARE fail
47
48# The following is required to support all Spitfires and Blackbirds
49WORKAROUND_DEFS += -DSF_ERRATA_32	# need dummy store before ldxa's
50					# from ASI_?TLB_*
51
52# The following is required to support all Spitfires and Blackbirds
53WORKAROUND_DEFS += -DSF_ERRATA_51	# the IMU gets
54					# confused by a membar #Sync
55					# in a delay slot
56
57# The following is required to support all Spitfires and Blackbirds
58WORKAROUND_DEFS += -DSF_ERRATA_54	# membar sync not good enough
59					# before ldxa from ASI_INTR_DISPATCH
60
61# The following is required to support Spitfires and Blackbirds
62WORKAROUND_DEFS += -DSF_ERRATA_57	# VA Hole
63
64# The following is required to support all Spitfires and Blackbirds
65WORKAROUND_DEFS += -DSF_V9_TABLE_28	# discrepancy in the Sparc V9 docs
66					# on handling of fp underflow/overflow
67
68# Minimum supported Cheetah revision
69WORKAROUND_DEFS += -DCHEETAH_MINREV_SUPPORTED=0x30
70
71# Cheetah+ erratum 25
72#   Will be fixed in Cheetah++ 1.1
73WORKAROUND_DEFS += -DCHEETAHPLUS_ERRATUM_25
74
75# Interrupts not taken during fpops
76#   Will not be fixed in Cheetah.
77WORKAROUND_DEFS += -DCHEETAH_ERRATUM_109
78
79# PRIV bit setting not held on TO or BERR
80#   Will not be fixed in Cheetah.
81WORKAROUND_DEFS += -DCHEETAH_ERRATUM_127
82
83# Jalapeno Errata 85
84# apply force-full-speed workaround to uni Jalapeno
85#   Fixed in Jalapeno 2.4
86WORKAROUND_DEFS += -DJALAPENO_ERRATA_85
87
88# The following is required to support all Cheetahs and derivatives
89#   Relocate ITLB t16 index 0 locked TTEs to avoid eviction.
90#   Will not be fixed.
91WORKAROUND_DEFS += -DCHEETAHPLUS_ERRATUM_34
92