xref: /onnv-gate/usr/src/uts/sun4u/sys/machparam.h (revision 12230:12df01648ca5)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
51772Sjl139090  * Common Development and Distribution License (the "License").
61772Sjl139090  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate /*
2212173SMichael.Corcoran@Sun.COM  * Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
230Sstevel@tonic-gate  */
240Sstevel@tonic-gate 
250Sstevel@tonic-gate /*	Copyright (c) 1988 AT&T	*/
260Sstevel@tonic-gate /*	All Rights Reserved	*/
270Sstevel@tonic-gate 
280Sstevel@tonic-gate #ifndef _SYS_MACHPARAM_H
290Sstevel@tonic-gate #define	_SYS_MACHPARAM_H
300Sstevel@tonic-gate 
310Sstevel@tonic-gate #ifdef	__cplusplus
320Sstevel@tonic-gate extern "C" {
330Sstevel@tonic-gate #endif
340Sstevel@tonic-gate 
350Sstevel@tonic-gate #ifndef _ASM
360Sstevel@tonic-gate #define	ADDRESS_C(c)    c ## ul
370Sstevel@tonic-gate #else   /* _ASM */
380Sstevel@tonic-gate #define	ADDRESS_C(c)    (c)
390Sstevel@tonic-gate #endif	/* _ASM */
400Sstevel@tonic-gate 
410Sstevel@tonic-gate /*
420Sstevel@tonic-gate  * Machine dependent parameters and limits - sun4u version.
430Sstevel@tonic-gate  */
440Sstevel@tonic-gate 
450Sstevel@tonic-gate /*
460Sstevel@tonic-gate  * Define the VAC symbol (etc.) if we could run on a machine
470Sstevel@tonic-gate  * which has a Virtual Address Cache
480Sstevel@tonic-gate  *
490Sstevel@tonic-gate  * This stuff gotta go.
500Sstevel@tonic-gate  */
510Sstevel@tonic-gate #define	VAC			/* support virtual addressed caches */
520Sstevel@tonic-gate 
530Sstevel@tonic-gate /*
540Sstevel@tonic-gate  * The maximum possible number of UPA devices in a system.
550Sstevel@tonic-gate  * MAX_UPA maybe defined in a platform's makefile.
560Sstevel@tonic-gate  */
570Sstevel@tonic-gate #ifdef	_STARFIRE
580Sstevel@tonic-gate /*
590Sstevel@tonic-gate  * We have a 7 bit id space for UPA devices in Xfire
600Sstevel@tonic-gate  */
610Sstevel@tonic-gate #define	MAX_UPA			128
620Sstevel@tonic-gate #else
630Sstevel@tonic-gate #ifndef MAX_UPA
640Sstevel@tonic-gate #define	MAX_UPA			32
650Sstevel@tonic-gate #endif
660Sstevel@tonic-gate #endif	/* _STARFIRE */
670Sstevel@tonic-gate 
680Sstevel@tonic-gate /*
690Sstevel@tonic-gate  * Maximum cpuid value that we support.  NCPU can be defined in a platform's
700Sstevel@tonic-gate  * makefile.
710Sstevel@tonic-gate  */
720Sstevel@tonic-gate #if	(defined(_STARFIRE) && !defined(lint))
730Sstevel@tonic-gate #define	NCPU	64
740Sstevel@tonic-gate #else
750Sstevel@tonic-gate #ifndef NCPU
760Sstevel@tonic-gate #define	NCPU	32
770Sstevel@tonic-gate #endif
780Sstevel@tonic-gate #endif	/* _STARFIRE && !lint */
790Sstevel@tonic-gate 
8012173SMichael.Corcoran@Sun.COM #if	(NCPU <= 1)
8112173SMichael.Corcoran@Sun.COM #define	NCPU_LOG2	0
8212173SMichael.Corcoran@Sun.COM #elif	(NCPU <= 2)
8312173SMichael.Corcoran@Sun.COM #define	NCPU_LOG2	1
8412173SMichael.Corcoran@Sun.COM #elif	(NCPU <= 4)
8512173SMichael.Corcoran@Sun.COM #define	NCPU_LOG2	2
8612173SMichael.Corcoran@Sun.COM #elif	(NCPU <= 8)
8712173SMichael.Corcoran@Sun.COM #define	NCPU_LOG2	3
8812173SMichael.Corcoran@Sun.COM #elif	(NCPU <= 16)
8912173SMichael.Corcoran@Sun.COM #define	NCPU_LOG2	4
9012173SMichael.Corcoran@Sun.COM #elif	(NCPU <= 32)
9112173SMichael.Corcoran@Sun.COM #define	NCPU_LOG2	5
9212173SMichael.Corcoran@Sun.COM #elif	(NCPU <= 64)
9312173SMichael.Corcoran@Sun.COM #define	NCPU_LOG2	6
9412173SMichael.Corcoran@Sun.COM #elif	(NCPU <= 128)
9512173SMichael.Corcoran@Sun.COM #define	NCPU_LOG2	7
9612173SMichael.Corcoran@Sun.COM #elif	(NCPU <= 256)
9712173SMichael.Corcoran@Sun.COM #define	NCPU_LOG2	8
9812173SMichael.Corcoran@Sun.COM #elif	(NCPU <= 512)
9912173SMichael.Corcoran@Sun.COM #define	NCPU_LOG2	9
10012173SMichael.Corcoran@Sun.COM #elif	(NCPU <= 1024)
10112173SMichael.Corcoran@Sun.COM #define	NCPU_LOG2	10
10212173SMichael.Corcoran@Sun.COM #else
10312173SMichael.Corcoran@Sun.COM #error	"add test for larger NCPU"
10412173SMichael.Corcoran@Sun.COM #endif
10512173SMichael.Corcoran@Sun.COM 
106*12230SFrank.Rival@oracle.com /* NCPU_P2 is NCPU rounded to a power of 2 */
107*12230SFrank.Rival@oracle.com #define	NCPU_P2	(1 << NCPU_LOG2)
108*12230SFrank.Rival@oracle.com 
1090Sstevel@tonic-gate /*
1100Sstevel@tonic-gate  * Maximum number of processors that we support.  With CMP processors, the
1110Sstevel@tonic-gate  * portid may not be equal to cpuid.  MAX_CPU_CHIPID can be defined in a
1120Sstevel@tonic-gate  * platform's makefile.
1130Sstevel@tonic-gate  */
1140Sstevel@tonic-gate #ifndef	MAX_CPU_CHIPID
1150Sstevel@tonic-gate #define	MAX_CPU_CHIPID	NCPU
1160Sstevel@tonic-gate #endif
1170Sstevel@tonic-gate 
1180Sstevel@tonic-gate /*
1190Sstevel@tonic-gate  * Define the FPU symbol if we could run on a machine with an external
1200Sstevel@tonic-gate  * FPU (i.e. not integrated with the normal machine state like the vax).
1210Sstevel@tonic-gate  *
1220Sstevel@tonic-gate  * The fpu is defined in the architecture manual, and the kernel hides
1230Sstevel@tonic-gate  * its absence if it is not present, that's pretty integrated, no?
1240Sstevel@tonic-gate  */
1250Sstevel@tonic-gate 
1260Sstevel@tonic-gate /*
1270Sstevel@tonic-gate  * MMU_PAGES* describes the physical page size used by the mapping hardware.
1280Sstevel@tonic-gate  * PAGES* describes the logical page size used by the system.
1290Sstevel@tonic-gate  */
1300Sstevel@tonic-gate #define	MMU_PAGE_SIZES		6	/* max sun4u mmu-supported page sizes */
1310Sstevel@tonic-gate #define	DEFAULT_MMU_PAGE_SIZES	4	/* default sun4u supported page sizes */
1320Sstevel@tonic-gate 
1330Sstevel@tonic-gate /*
1340Sstevel@tonic-gate  * XXX make sure the MMU_PAGESHIFT definition here is
1350Sstevel@tonic-gate  * consistent with the one in param.h
1360Sstevel@tonic-gate  */
1370Sstevel@tonic-gate #define	MMU_PAGESHIFT		13
1380Sstevel@tonic-gate #define	MMU_PAGESIZE		(1<<MMU_PAGESHIFT)
1390Sstevel@tonic-gate #define	MMU_PAGEOFFSET		(MMU_PAGESIZE - 1)
1400Sstevel@tonic-gate #define	MMU_PAGEMASK		(~MMU_PAGEOFFSET)
1410Sstevel@tonic-gate 
1420Sstevel@tonic-gate #define	MMU_PAGESHIFT64K	16
1430Sstevel@tonic-gate #define	MMU_PAGESIZE64K		(1 << MMU_PAGESHIFT64K)
1440Sstevel@tonic-gate #define	MMU_PAGEOFFSET64K	(MMU_PAGESIZE64K - 1)
1450Sstevel@tonic-gate #define	MMU_PAGEMASK64K		(~MMU_PAGEOFFSET64K)
1460Sstevel@tonic-gate 
1470Sstevel@tonic-gate #define	MMU_PAGESHIFT512K	19
1480Sstevel@tonic-gate #define	MMU_PAGESIZE512K	(1 << MMU_PAGESHIFT512K)
1490Sstevel@tonic-gate #define	MMU_PAGEOFFSET512K	(MMU_PAGESIZE512K - 1)
1500Sstevel@tonic-gate #define	MMU_PAGEMASK512K	(~MMU_PAGEOFFSET512K)
1510Sstevel@tonic-gate 
1520Sstevel@tonic-gate #define	MMU_PAGESHIFT4M		22
1530Sstevel@tonic-gate #define	MMU_PAGESIZE4M		(1 << MMU_PAGESHIFT4M)
1540Sstevel@tonic-gate #define	MMU_PAGEOFFSET4M	(MMU_PAGESIZE4M - 1)
1550Sstevel@tonic-gate #define	MMU_PAGEMASK4M		(~MMU_PAGEOFFSET4M)
1560Sstevel@tonic-gate 
1570Sstevel@tonic-gate #define	MMU_PAGESHIFT32M	25
1580Sstevel@tonic-gate #define	MMU_PAGESIZE32M		(1 << MMU_PAGESHIFT32M)
1590Sstevel@tonic-gate #define	MMU_PAGEOFFSET32M	(MMU_PAGESIZE32M - 1)
1600Sstevel@tonic-gate #define	MMU_PAGEMASK32M		(~MMU_PAGEOFFSET32M)
1610Sstevel@tonic-gate 
1620Sstevel@tonic-gate #define	MMU_PAGESHIFT256M	28
1630Sstevel@tonic-gate #define	MMU_PAGESIZE256M	(1 << MMU_PAGESHIFT256M)
1640Sstevel@tonic-gate #define	MMU_PAGEOFFSET256M	(MMU_PAGESIZE256M - 1)
1650Sstevel@tonic-gate #define	MMU_PAGEMASK256M	(~MMU_PAGEOFFSET256M)
1660Sstevel@tonic-gate 
1670Sstevel@tonic-gate #define	PAGESHIFT	13
1680Sstevel@tonic-gate #define	PAGESIZE	(1<<PAGESHIFT)
1690Sstevel@tonic-gate #define	PAGEOFFSET	(PAGESIZE - 1)
1700Sstevel@tonic-gate #define	PAGEMASK	(~PAGEOFFSET)
1710Sstevel@tonic-gate 
1720Sstevel@tonic-gate /*
1730Sstevel@tonic-gate  * DATA_ALIGN is used to define the alignment of the Unix data segment.
1740Sstevel@tonic-gate  */
1750Sstevel@tonic-gate #define	DATA_ALIGN	ADDRESS_C(0x2000)
1760Sstevel@tonic-gate 
1770Sstevel@tonic-gate /*
1780Sstevel@tonic-gate  * DEFAULT KERNEL THREAD stack size.
1790Sstevel@tonic-gate  */
1800Sstevel@tonic-gate 
1810Sstevel@tonic-gate #define	DEFAULTSTKSZ	(3*PAGESIZE)
1820Sstevel@tonic-gate 
1830Sstevel@tonic-gate /*
1840Sstevel@tonic-gate  * DEFAULT initial thread stack size.
1850Sstevel@tonic-gate  */
1860Sstevel@tonic-gate #define	T0STKSZ		(2 * DEFAULTSTKSZ)
1870Sstevel@tonic-gate 
1880Sstevel@tonic-gate /*
1890Sstevel@tonic-gate  * KERNELBASE is the virtual address which
1900Sstevel@tonic-gate  * the kernel text/data mapping starts in all contexts.
1910Sstevel@tonic-gate  */
1920Sstevel@tonic-gate #define	KERNELBASE	ADDRESS_C(0x01000000)
1930Sstevel@tonic-gate 
1940Sstevel@tonic-gate /*
1953446Smrj  * Virtual address range available to the debugger
1963446Smrj  */
1973446Smrj #define	SEGDEBUGBASE	ADDRESS_C(0xedd00000)
1983446Smrj #define	SEGDEBUGSIZE	(ADDRESS_C(0xf0000000) - SEGDEBUGBASE)
1993446Smrj 
2003446Smrj /*
2010Sstevel@tonic-gate  * Define the userlimits
2020Sstevel@tonic-gate  */
2030Sstevel@tonic-gate 
2040Sstevel@tonic-gate #define	USERLIMIT	ADDRESS_C(0xFFFFFFFF80000000)
2050Sstevel@tonic-gate #define	USERLIMIT32	ADDRESS_C(0xFFC00000)
2060Sstevel@tonic-gate 
2070Sstevel@tonic-gate /*
2080Sstevel@tonic-gate  * Define SEGKPBASE, start of the segkp segment.
2090Sstevel@tonic-gate  */
2100Sstevel@tonic-gate 
2110Sstevel@tonic-gate #define	SEGKPBASE	ADDRESS_C(0x2a100000000)
2120Sstevel@tonic-gate 
2130Sstevel@tonic-gate /*
2140Sstevel@tonic-gate  * Define SEGMAPBASE, start of the segmap segment.
2150Sstevel@tonic-gate  */
2160Sstevel@tonic-gate 
2170Sstevel@tonic-gate #define	SEGMAPBASE	ADDRESS_C(0x2a750000000)
2180Sstevel@tonic-gate 
2190Sstevel@tonic-gate /*
2200Sstevel@tonic-gate  * SYSBASE is the virtual address which the kernel allocated memory
2210Sstevel@tonic-gate  * mapping starts in all contexts.  SYSLIMIT is the end of the Sysbase segment.
2220Sstevel@tonic-gate  */
2230Sstevel@tonic-gate 
2240Sstevel@tonic-gate #define	SYSBASE		ADDRESS_C(0x30000000000)
2250Sstevel@tonic-gate #define	SYSLIMIT	ADDRESS_C(0x70000000000)
2260Sstevel@tonic-gate #define	SYSBASE32	ADDRESS_C(0x70000000)
2270Sstevel@tonic-gate #define	SYSLIMIT32	ADDRESS_C(0x80000000)
2280Sstevel@tonic-gate 
2290Sstevel@tonic-gate /*
2305648Ssetje  * BOOTTMPBASE is the base of a space that can be reclaimed
2315648Ssetje  * after the kernel takes over the machine.  It contains the
2325648Ssetje  * boot archive and memory allocated by krtld before kmem_alloc
2335648Ssetje  * is brought online.
2345648Ssetje  */
2355648Ssetje #define	BOOTTMPBASE	ADDRESS_C(0x4C000000)
2365648Ssetje 
2375648Ssetje /*
2380Sstevel@tonic-gate  * MEMSCRUBBASE is the base virtual address for the memory scrubber
2390Sstevel@tonic-gate  * to read large pages.  It MUST be 4MB page aligned.
2400Sstevel@tonic-gate  */
2410Sstevel@tonic-gate 
2420Sstevel@tonic-gate #define	MEMSCRUBBASE	0x2a000000000
2430Sstevel@tonic-gate 
2440Sstevel@tonic-gate /*
2450Sstevel@tonic-gate  * Define the kernel address space range allocated to Open Firmware
2460Sstevel@tonic-gate  */
2470Sstevel@tonic-gate #define	OFW_START_ADDR	0xf0000000
2480Sstevel@tonic-gate #define	OFW_END_ADDR	0xffffffff
2490Sstevel@tonic-gate 
2500Sstevel@tonic-gate /*
2510Sstevel@tonic-gate  * ARGSBASE is the base virtual address of the range which
2520Sstevel@tonic-gate  * the kernel uses to map the arguments for exec.
2530Sstevel@tonic-gate  */
2540Sstevel@tonic-gate #define	ARGSBASE	(MEMSCRUBBASE - NCARGS)
2550Sstevel@tonic-gate 
2560Sstevel@tonic-gate /*
2570Sstevel@tonic-gate  * PPMAPBASE is the base virtual address of the range which
2580Sstevel@tonic-gate  * the kernel uses to quickly map pages for operations such
2590Sstevel@tonic-gate  * as ppcopy, pagecopy, pagezero, and pagesum.
2600Sstevel@tonic-gate  */
2610Sstevel@tonic-gate #define	PPMAPSIZE	(512 * 1024)
2620Sstevel@tonic-gate #define	PPMAPBASE	(ARGSBASE - PPMAPSIZE)
2630Sstevel@tonic-gate 
2640Sstevel@tonic-gate #define	MAXPP_SLOTS	ADDRESS_C(16)
2650Sstevel@tonic-gate #define	PPMAP_FAST_SIZE	(MAXPP_SLOTS * PAGESIZE * NCPU)
2660Sstevel@tonic-gate #define	PPMAP_FAST_BASE	(PPMAPBASE - PPMAP_FAST_SIZE)
2670Sstevel@tonic-gate 
2680Sstevel@tonic-gate /*
2690Sstevel@tonic-gate  * PIOMAPBASE is the base virtual address at which programmable I/O registers
2700Sstevel@tonic-gate  * are mapped.  This allows such memory -- which may induce side effects when
2710Sstevel@tonic-gate  * read -- to be cordoned off from the system at-large.
2720Sstevel@tonic-gate  */
2730Sstevel@tonic-gate #define	PIOMAPSIZE	(1024 * 1024 * 1024 * (uintptr_t)5)
2740Sstevel@tonic-gate #define	PIOMAPBASE	(PPMAP_FAST_BASE - PIOMAPSIZE)
2750Sstevel@tonic-gate 
2760Sstevel@tonic-gate /*
2770Sstevel@tonic-gate  * Allocate space for kernel modules on nucleus pages
2780Sstevel@tonic-gate  */
2795648Ssetje #define	MODDATA	1024 * 512
2800Sstevel@tonic-gate 
2810Sstevel@tonic-gate /*
2820Sstevel@tonic-gate  * The heap has a region allocated from it specifically for module text that
2830Sstevel@tonic-gate  * cannot fit on the nucleus page.  This region -- which starts at address
2840Sstevel@tonic-gate  * HEAPTEXT_BASE and runs for HEAPTEXT_SIZE bytes -- has virtual holes
2850Sstevel@tonic-gate  * punched in it: for every HEAPTEXT_MAPPED bytes of available virtual, there
2860Sstevel@tonic-gate  * is a virtual hole of size HEAPTEXT_UNMAPPED bytes sitting beneath it.  This
2870Sstevel@tonic-gate  * assures that any text address is within HEAPTEXT_MAPPED of an unmapped
2880Sstevel@tonic-gate  * region.  The unmapped regions themselves are managed with the routines
2890Sstevel@tonic-gate  * kobj_texthole_alloc() and kobj_texthole_free().
2900Sstevel@tonic-gate  */
2910Sstevel@tonic-gate #define	HEAPTEXT_SIZE		(128 * 1024 * 1024)	/* bytes */
2920Sstevel@tonic-gate #define	HEAPTEXT_OVERSIZE	(64 * 1024 * 1024)	/* bytes */
2930Sstevel@tonic-gate #define	HEAPTEXT_BASE		(SYSLIMIT32 - HEAPTEXT_SIZE)
2940Sstevel@tonic-gate #define	HEAPTEXT_MAPPED		(2 * 1024 * 1024)
2950Sstevel@tonic-gate #define	HEAPTEXT_UNMAPPED	(2 * 1024 * 1024)
2960Sstevel@tonic-gate 
2970Sstevel@tonic-gate #define	HEAPTEXT_NARENAS	\
2980Sstevel@tonic-gate 	(HEAPTEXT_SIZE / (HEAPTEXT_MAPPED + HEAPTEXT_UNMAPPED) + 2)
2990Sstevel@tonic-gate 
3000Sstevel@tonic-gate /*
3010Sstevel@tonic-gate  * Preallocate an area for setting up the user stack during
3020Sstevel@tonic-gate  * the exec(). This way we have a faster allocator and also
3030Sstevel@tonic-gate  * make sure the stack is always VAC aligned correctly. see
3040Sstevel@tonic-gate  * get_arg_base() in startup.c.
3050Sstevel@tonic-gate  */
3060Sstevel@tonic-gate #define	ARG_SLOT_SIZE	(0x8000)
3070Sstevel@tonic-gate #define	ARG_SLOT_SHIFT	(15)
3080Sstevel@tonic-gate #define	N_ARG_SLOT	(0x80)
3090Sstevel@tonic-gate 
3100Sstevel@tonic-gate #define	NARG_BASE	(PIOMAPBASE - (ARG_SLOT_SIZE * N_ARG_SLOT))
3110Sstevel@tonic-gate 
3120Sstevel@tonic-gate /*
3130Sstevel@tonic-gate  * ktextseg+kvalloc should not use space beyond KERNEL_LIMIT32.
3140Sstevel@tonic-gate  */
3150Sstevel@tonic-gate 
3160Sstevel@tonic-gate /*
3170Sstevel@tonic-gate  * For 64-bit kernels, rename KERNEL_LIMIT to KERNEL_LIMIT32 to more accurately
3180Sstevel@tonic-gate  * reflect the fact that it's actually the limit for 32-bit kernel virtual
3190Sstevel@tonic-gate  * addresses.
3200Sstevel@tonic-gate  */
3215648Ssetje #define	KERNEL_LIMIT32	BOOTTMPBASE
3220Sstevel@tonic-gate 
3230Sstevel@tonic-gate #define	PFN_TO_BUSTYPE(pfn)	(((pfn) >> 19) & 0x1FF)
3240Sstevel@tonic-gate #define	IO_BUSTYPE(pfn)	((PFN_TO_BUSTYPE(pfn) & 0x100) >> 8)
3250Sstevel@tonic-gate 
3260Sstevel@tonic-gate #ifdef	_STARFIRE
3270Sstevel@tonic-gate #define	PFN_TO_UPAID(pfn)	BUSTYPE_TO_UPAID(PFN_TO_BUSTYPE(pfn))
3280Sstevel@tonic-gate #else
3290Sstevel@tonic-gate #define	PFN_TO_UPAID(pfn)	(((pfn) >> 20) & 0x1F)
3300Sstevel@tonic-gate #endif	/* _STARFIRE */
3310Sstevel@tonic-gate 
3320Sstevel@tonic-gate /*
3330Sstevel@tonic-gate  * Defines used for the ptl1_panic parameter, which is passed to the
3340Sstevel@tonic-gate  * ptl1_panic assembly routine in %g1.  These #defines have string
3350Sstevel@tonic-gate  * names defined in sun4u/os/mach_cpu_states.c which should be kept up to
3360Sstevel@tonic-gate  * date if new #defines are added.
3370Sstevel@tonic-gate  */
3380Sstevel@tonic-gate #define	PTL1_BAD_DEBUG		0
3390Sstevel@tonic-gate #define	PTL1_BAD_WTRAP		1
3400Sstevel@tonic-gate #define	PTL1_BAD_KMISS		2
3410Sstevel@tonic-gate #define	PTL1_BAD_KPROT_FAULT	3
3420Sstevel@tonic-gate #define	PTL1_BAD_ISM		4
3430Sstevel@tonic-gate #define	PTL1_BAD_MMUTRAP	5
3440Sstevel@tonic-gate #define	PTL1_BAD_TRAP		6
3450Sstevel@tonic-gate #define	PTL1_BAD_FPTRAP		7
3462973Sgovinda #define	PTL1_BAD_INTR_VEC	8
3470Sstevel@tonic-gate #define	PTL1_BAD_TRACE_PTR	9
3480Sstevel@tonic-gate #define	PTL1_BAD_STACK		10
3490Sstevel@tonic-gate #define	PTL1_BAD_DTRACE_FLAGS	11
3500Sstevel@tonic-gate #define	PTL1_BAD_CTX_STEAL	12
3510Sstevel@tonic-gate #define	PTL1_BAD_ECC		13
3521270Sbs21162 #define	PTL1_BAD_CTX		14
3532241Shuah #define	PTL1_BAD_RAISE_TSBEXCP	20
3546127Ssm142603 #define	PTL1_NO_SCDTSB8K	21
3550Sstevel@tonic-gate 
3560Sstevel@tonic-gate /*
3570Sstevel@tonic-gate  * Defines used for ptl1 related data structs.
3580Sstevel@tonic-gate  */
3590Sstevel@tonic-gate #define	PTL1_MAXTL		4
3600Sstevel@tonic-gate #define	PTL1_DEBUG_TRAP		0x7C
3610Sstevel@tonic-gate #define	PTL1_SSIZE		1024	/* minimum stack size */
3620Sstevel@tonic-gate #define	CPU_ALLOC_SIZE		MMU_PAGESIZE
3630Sstevel@tonic-gate 
3640Sstevel@tonic-gate #ifdef	__cplusplus
3650Sstevel@tonic-gate }
3660Sstevel@tonic-gate #endif
3670Sstevel@tonic-gate 
3680Sstevel@tonic-gate #endif	/* _SYS_MACHPARAM_H */
369