xref: /illumos-gate/usr/src/uts/i86pc/sys/machparam.h (revision 23d9e5ac)
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
541791439Sandrei  * Common Development and Distribution License (the "License").
641791439Sandrei  * 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  */
217c478bd9Sstevel@tonic-gate /*
22*23d9e5acSMichael Corcoran  * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
237c478bd9Sstevel@tonic-gate  */
247c478bd9Sstevel@tonic-gate 
257c478bd9Sstevel@tonic-gate /*	Copyright (c) 1988 AT&T	*/
267c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
277c478bd9Sstevel@tonic-gate 
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate #ifndef _SYS_MACHPARAM_H
307c478bd9Sstevel@tonic-gate #define	_SYS_MACHPARAM_H
317c478bd9Sstevel@tonic-gate 
3241791439Sandrei #if !defined(_ASM)
337c478bd9Sstevel@tonic-gate #include <sys/types.h>
34843e1988Sjohnlev 
35843e1988Sjohnlev #if defined(__xpv)
36843e1988Sjohnlev #include <sys/xpv_impl.h>
37843e1988Sjohnlev #endif
38843e1988Sjohnlev 
3941791439Sandrei #endif
407c478bd9Sstevel@tonic-gate 
417c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
427c478bd9Sstevel@tonic-gate extern "C" {
437c478bd9Sstevel@tonic-gate #endif
447c478bd9Sstevel@tonic-gate 
457c478bd9Sstevel@tonic-gate #ifndef _ASM
467c478bd9Sstevel@tonic-gate #define	ADDRESS_C(c)    c ## ul
477c478bd9Sstevel@tonic-gate #else   /* _ASM */
487c478bd9Sstevel@tonic-gate #define	ADDRESS_C(c)    (c)
497c478bd9Sstevel@tonic-gate #endif  /* _ASM */
507c478bd9Sstevel@tonic-gate 
517c478bd9Sstevel@tonic-gate /*
5241791439Sandrei  * Machine dependent parameters and limits.
537c478bd9Sstevel@tonic-gate  */
54ae115bc7Smrj 
5541791439Sandrei #if defined(__amd64)
56a563a037Sbholler #define	NCPU	256
57*23d9e5acSMichael Corcoran #define	NCPU_LOG2	8
5841791439Sandrei #elif defined(__i386)
5941791439Sandrei #define	NCPU	32
60*23d9e5acSMichael Corcoran #define	NCPU_LOG2	5
6141791439Sandrei #endif
627c478bd9Sstevel@tonic-gate 
637c478bd9Sstevel@tonic-gate /*
647c478bd9Sstevel@tonic-gate  * The value defined below could grow to 16. hat structure and
657c478bd9Sstevel@tonic-gate  * page_t have room for 16 nodes.
667c478bd9Sstevel@tonic-gate  */
677c478bd9Sstevel@tonic-gate #define	MAXNODES 	4
687c478bd9Sstevel@tonic-gate #define	NUMA_NODEMASK	0x0f
697c478bd9Sstevel@tonic-gate 
707c478bd9Sstevel@tonic-gate /*
717c478bd9Sstevel@tonic-gate  * Define the FPU symbol if we could run on a machine with an external
727c478bd9Sstevel@tonic-gate  * FPU (i.e. not integrated with the normal machine state like the vax).
737c478bd9Sstevel@tonic-gate  *
747c478bd9Sstevel@tonic-gate  * The fpu is defined in the architecture manual, and the kernel hides
757c478bd9Sstevel@tonic-gate  * its absence if it is not present, that's pretty integrated, no?
767c478bd9Sstevel@tonic-gate  */
777c478bd9Sstevel@tonic-gate 
787c478bd9Sstevel@tonic-gate /* supported page sizes */
7902bc52beSkchow #define	MMU_PAGE_SIZES	3
807c478bd9Sstevel@tonic-gate 
817c478bd9Sstevel@tonic-gate /*
827c478bd9Sstevel@tonic-gate  * MMU_PAGES* describes the physical page size used by the mapping hardware.
837c478bd9Sstevel@tonic-gate  * PAGES* describes the logical page size used by the system.
847c478bd9Sstevel@tonic-gate  */
857c478bd9Sstevel@tonic-gate 
867c478bd9Sstevel@tonic-gate #define	MMU_PAGESIZE	0x1000		/* 4096 bytes */
877c478bd9Sstevel@tonic-gate #define	MMU_PAGESHIFT	12		/* log2(MMU_PAGESIZE) */
8841791439Sandrei 
8941791439Sandrei #if !defined(_ASM)
907c478bd9Sstevel@tonic-gate #define	MMU_PAGEOFFSET	(MMU_PAGESIZE-1) /* Mask of address bits in page */
91ae115bc7Smrj #else	/* _ASM */
92ae115bc7Smrj #define	MMU_PAGEOFFSET	_CONST(MMU_PAGESIZE-1)	/* assembler lameness */
93ae115bc7Smrj #endif	/* _ASM */
9441791439Sandrei 
957c478bd9Sstevel@tonic-gate #define	MMU_PAGEMASK	(~MMU_PAGEOFFSET)
967c478bd9Sstevel@tonic-gate 
977c478bd9Sstevel@tonic-gate #define	PAGESIZE	0x1000		/* All of the above, for logical */
987c478bd9Sstevel@tonic-gate #define	PAGESHIFT	12
997c478bd9Sstevel@tonic-gate #define	PAGEOFFSET	(PAGESIZE - 1)
1007c478bd9Sstevel@tonic-gate #define	PAGEMASK	(~PAGEOFFSET)
1017c478bd9Sstevel@tonic-gate 
1027c478bd9Sstevel@tonic-gate /*
1037c478bd9Sstevel@tonic-gate  * DATA_ALIGN is used to define the alignment of the Unix data segment.
1047c478bd9Sstevel@tonic-gate  */
1057c478bd9Sstevel@tonic-gate #define	DATA_ALIGN	PAGESIZE
1067c478bd9Sstevel@tonic-gate 
1077c478bd9Sstevel@tonic-gate /*
10841791439Sandrei  * DEFAULT KERNEL THREAD stack size (in pages).
1097c478bd9Sstevel@tonic-gate  */
1107c478bd9Sstevel@tonic-gate #if defined(__amd64)
11141791439Sandrei #define	DEFAULTSTKSZ_NPGS	5
1127c478bd9Sstevel@tonic-gate #elif defined(__i386)
113bfa1c0bcSSherry Moore #define	DEFAULTSTKSZ_NPGS	3
1147c478bd9Sstevel@tonic-gate #endif
1157c478bd9Sstevel@tonic-gate 
11641791439Sandrei #if !defined(_ASM)
11741791439Sandrei #define	DEFAULTSTKSZ	(DEFAULTSTKSZ_NPGS * PAGESIZE)
11841791439Sandrei #else	/* !_ASM */
11941791439Sandrei #define	DEFAULTSTKSZ	_MUL(DEFAULTSTKSZ_NPGS, PAGESIZE) /* as(1) lameness */
12041791439Sandrei #endif	/* !_ASM */
12141791439Sandrei 
1227c478bd9Sstevel@tonic-gate /*
1237c478bd9Sstevel@tonic-gate  * KERNELBASE is the virtual address at which the kernel segments start in
1247c478bd9Sstevel@tonic-gate  * all contexts.
1257c478bd9Sstevel@tonic-gate  *
12635b1ab99Sjosephb  * KERNELBASE is not fixed.  The value of KERNELBASE can change with
12735b1ab99Sjosephb  * installed memory or on 32 bit systems the eprom variable 'eprom_kernelbase'.
1287c478bd9Sstevel@tonic-gate  *
12935b1ab99Sjosephb  * common/conf/param.c requires a compile time defined value for KERNELBASE.
13035b1ab99Sjosephb  * This value is save in the variable _kernelbase.  _kernelbase may then be
13135b1ab99Sjosephb  * modified with to a different value in i86pc/os/startup.c.
1327c478bd9Sstevel@tonic-gate  *
13335b1ab99Sjosephb  * Most code should be using kernelbase, which resolves to a reference to
13435b1ab99Sjosephb  * _kernelbase.
1357c478bd9Sstevel@tonic-gate  */
136ae115bc7Smrj #define	KERNEL_TEXT_amd64	UINT64_C(0xfffffffffb800000)
137843e1988Sjohnlev 
138843e1988Sjohnlev #ifdef __i386
139843e1988Sjohnlev 
140ae115bc7Smrj #define	KERNEL_TEXT_i386	ADDRESS_C(0xfe800000)
1417c478bd9Sstevel@tonic-gate 
142843e1988Sjohnlev /*
143843e1988Sjohnlev  * We don't use HYPERVISOR_VIRT_START, as we need both the PAE and non-PAE
144843e1988Sjohnlev  * versions in our code. We always compile based on the lower PAE address.
145843e1988Sjohnlev  */
146843e1988Sjohnlev #define	KERNEL_TEXT_i386_xpv	\
147843e1988Sjohnlev 	(HYPERVISOR_VIRT_START_PAE - 3 * ADDRESS_C(0x400000))
148843e1988Sjohnlev 
149843e1988Sjohnlev #endif /* __i386 */
150843e1988Sjohnlev 
1517c478bd9Sstevel@tonic-gate #if defined(__amd64)
1527c478bd9Sstevel@tonic-gate 
1537c478bd9Sstevel@tonic-gate #define	KERNELBASE	ADDRESS_C(0xfffffd8000000000)
1547c478bd9Sstevel@tonic-gate 
1557c478bd9Sstevel@tonic-gate /*
1567c478bd9Sstevel@tonic-gate  * Size of the unmapped "red zone" at the very bottom of the kernel's
1577c478bd9Sstevel@tonic-gate  * address space.  Corresponds to 1 slot in the toplevel pagetable.
1587c478bd9Sstevel@tonic-gate  */
1597c478bd9Sstevel@tonic-gate #define	KERNEL_REDZONE_SIZE   ((uintptr_t)1 << 39)
1607c478bd9Sstevel@tonic-gate 
1617c478bd9Sstevel@tonic-gate /*
1627c478bd9Sstevel@tonic-gate  * Base of 'core' heap area, which is used for kernel and module text/data
1637c478bd9Sstevel@tonic-gate  * that must be within a 2GB range to allow for rip-relative addressing.
1647c478bd9Sstevel@tonic-gate  */
1657c478bd9Sstevel@tonic-gate #define	COREHEAP_BASE	ADDRESS_C(0xffffffffc0000000)
1667c478bd9Sstevel@tonic-gate 
1677c478bd9Sstevel@tonic-gate /*
16835b1ab99Sjosephb  * Beginning of the segkpm window. A lower value than this is used if
16935b1ab99Sjosephb  * physical addresses exceed 1TB. See i86pc/os/startup.c
1707c478bd9Sstevel@tonic-gate  */
1717c478bd9Sstevel@tonic-gate #define	SEGKPM_BASE	ADDRESS_C(0xfffffe0000000000)
1727c478bd9Sstevel@tonic-gate 
173ae115bc7Smrj /*
17435b1ab99Sjosephb  * This is valloc_base, above seg_kpm, but below everything else.
17535b1ab99Sjosephb  * A lower value than this may be used if SEGKPM_BASE is adjusted.
17635b1ab99Sjosephb  * See i86pc/os/startup.c
177ae115bc7Smrj  */
178ae115bc7Smrj #define	VALLOC_BASE	ADDRESS_C(0xffffff0000000000)
179ae115bc7Smrj 
1807c478bd9Sstevel@tonic-gate /*
1817c478bd9Sstevel@tonic-gate  * default and boundary sizes for segkp
1827c478bd9Sstevel@tonic-gate  */
1837c478bd9Sstevel@tonic-gate #define	SEGKPDEFSIZE	(2L * 1024L * 1024L * 1024L)		/*   2G */
1847c478bd9Sstevel@tonic-gate #define	SEGKPMAXSIZE	(8L * 1024L * 1024L * 1024L)		/*   8G */
1857c478bd9Sstevel@tonic-gate #define	SEGKPMINSIZE	(200L * 1024 * 1024L)			/* 200M */
1867c478bd9Sstevel@tonic-gate 
187ad23a2dbSjohansen /*
188ad23a2dbSjohansen  * minimum size for segzio
189ad23a2dbSjohansen  */
190ad23a2dbSjohansen #define	SEGZIOMINSIZE	(400L * 1024 * 1024L)			/* 400M */
191a778305aSjohansen #define	SEGZIOMAXSIZE	(512L * 1024L * 1024L * 1024L)		/* 512G */
192ad23a2dbSjohansen 
1937c478bd9Sstevel@tonic-gate /*
194ae115bc7Smrj  * During intial boot we limit heap to the top 4Gig.
1957c478bd9Sstevel@tonic-gate  */
196ae115bc7Smrj #define	BOOT_KERNELHEAP_BASE	ADDRESS_C(0xffffffff00000000)
1977c478bd9Sstevel@tonic-gate 
1987c478bd9Sstevel@tonic-gate /*
1997c478bd9Sstevel@tonic-gate  * VMWare works best if we don't use the top 64Meg of memory for amd64.
2007c478bd9Sstevel@tonic-gate  * Set KERNEL_TEXT to top_o_memory - 64Meg - 8 Meg for 8Meg of nucleus pages.
2017c478bd9Sstevel@tonic-gate  */
2027c478bd9Sstevel@tonic-gate #define	PROMSTART	ADDRESS_C(0xffc00000)
203ae115bc7Smrj #define	KERNEL_TEXT	KERNEL_TEXT_amd64
204ae115bc7Smrj 
205ae115bc7Smrj /*
206ae115bc7Smrj  * Virtual address range available to the debugger
207ae115bc7Smrj  */
208ae115bc7Smrj #define	SEGDEBUGBASE	ADDRESS_C(0xffffffffff800000)
209ae115bc7Smrj #define	SEGDEBUGSIZE	ADDRESS_C(0x400000)
2107c478bd9Sstevel@tonic-gate 
2117c478bd9Sstevel@tonic-gate /*
2127c478bd9Sstevel@tonic-gate  * Define upper limit on user address space
2137c478bd9Sstevel@tonic-gate  *
2147c478bd9Sstevel@tonic-gate  * In amd64, the upper limit on a 64-bit user address space is 1 large page
2157c478bd9Sstevel@tonic-gate  * (2MB) below kernelbase.  The upper limit for a 32-bit user address space
2167c478bd9Sstevel@tonic-gate  * is 1 small page (4KB) below the top of the 32-bit range.  The 64-bit
2177c478bd9Sstevel@tonic-gate  * limit give dtrace the red zone it needs below kernelbase.  The 32-bit
2187c478bd9Sstevel@tonic-gate  * limit gives us a small red zone to detect address-space overruns in a
2197c478bd9Sstevel@tonic-gate  * user program.
220843e1988Sjohnlev  *
221843e1988Sjohnlev  * On the hypervisor, we limit the user to memory below the VA hole.
222843e1988Sjohnlev  * Subtract 1 large page for a red zone.
2237c478bd9Sstevel@tonic-gate  */
224843e1988Sjohnlev #if defined(__xpv)
225843e1988Sjohnlev #define	USERLIMIT	ADDRESS_C(0x00007fffffe00000)
226843e1988Sjohnlev #else
2277c478bd9Sstevel@tonic-gate #define	USERLIMIT	ADDRESS_C(0xfffffd7fffe00000)
228843e1988Sjohnlev #endif
229843e1988Sjohnlev 
2307c478bd9Sstevel@tonic-gate #ifdef bug_5074717_is_fixed
2317c478bd9Sstevel@tonic-gate #define	USERLIMIT32	ADDRESS_C(0xfffff000)
2327c478bd9Sstevel@tonic-gate #else
2337c478bd9Sstevel@tonic-gate #define	USERLIMIT32	ADDRESS_C(0xfefff000)
2347c478bd9Sstevel@tonic-gate #endif
2357c478bd9Sstevel@tonic-gate 
2367c478bd9Sstevel@tonic-gate #elif defined(__i386)
2377c478bd9Sstevel@tonic-gate 
2387c478bd9Sstevel@tonic-gate #ifdef DEBUG
2397c478bd9Sstevel@tonic-gate #define	KERNELBASE	ADDRESS_C(0xc8000000)
2407c478bd9Sstevel@tonic-gate #else
2417c478bd9Sstevel@tonic-gate #define	KERNELBASE	ADDRESS_C(0xd4000000)
2427c478bd9Sstevel@tonic-gate #endif
2437c478bd9Sstevel@tonic-gate 
2447c478bd9Sstevel@tonic-gate #define	KERNELBASE_MAX	ADDRESS_C(0xe0000000)
2457c478bd9Sstevel@tonic-gate 
2467c478bd9Sstevel@tonic-gate /*
2477c478bd9Sstevel@tonic-gate  * The i386 ABI requires that the user address space be at least 3Gb
2487c478bd9Sstevel@tonic-gate  * in size.  KERNELBASE_ABI_MIN is used as the default KERNELBASE for
2497c478bd9Sstevel@tonic-gate  * physical memory configurations > 4gb.
2507c478bd9Sstevel@tonic-gate  */
2517c478bd9Sstevel@tonic-gate #define	KERNELBASE_ABI_MIN	ADDRESS_C(0xc0000000)
2527c478bd9Sstevel@tonic-gate 
2537c478bd9Sstevel@tonic-gate /*
2547c478bd9Sstevel@tonic-gate  * Size of the unmapped "red zone" at the very bottom of the kernel's
2557c478bd9Sstevel@tonic-gate  * address space.  Since segmap start immediately above the red zone, this
2567c478bd9Sstevel@tonic-gate  * needs to be MAXBSIZE aligned.
2577c478bd9Sstevel@tonic-gate  */
2587c478bd9Sstevel@tonic-gate #define	KERNEL_REDZONE_SIZE   MAXBSIZE
2597c478bd9Sstevel@tonic-gate 
2607c478bd9Sstevel@tonic-gate /*
2617c478bd9Sstevel@tonic-gate  * This is the last 4MB of the 4G address space. Some psm modules
2627c478bd9Sstevel@tonic-gate  * need this region of virtual address space mapped 1-1
263843e1988Sjohnlev  * The top 64MB of the address space is reserved for the hypervisor.
2647c478bd9Sstevel@tonic-gate  */
2657c478bd9Sstevel@tonic-gate #define	PROMSTART	ADDRESS_C(0xffc00000)
266843e1988Sjohnlev #ifdef __xpv
267843e1988Sjohnlev #define	KERNEL_TEXT	KERNEL_TEXT_i386_xpv
268843e1988Sjohnlev #else
269ae115bc7Smrj #define	KERNEL_TEXT	KERNEL_TEXT_i386
270843e1988Sjohnlev #endif
271ae115bc7Smrj 
272ae115bc7Smrj /*
273ae115bc7Smrj  * Virtual address range available to the debugger
274ae115bc7Smrj  * We place it just above the kernel text (4M) and kernel data (4M).
275ae115bc7Smrj  */
276ae115bc7Smrj #define	SEGDEBUGBASE	(KERNEL_TEXT + ADDRESS_C(0x800000))
277ae115bc7Smrj #define	SEGDEBUGSIZE	ADDRESS_C(0x400000)
2787c478bd9Sstevel@tonic-gate 
2797c478bd9Sstevel@tonic-gate /*
2807c478bd9Sstevel@tonic-gate  * Define upper limit on user address space
2817c478bd9Sstevel@tonic-gate  */
2827c478bd9Sstevel@tonic-gate #define	USERLIMIT	KERNELBASE
2837c478bd9Sstevel@tonic-gate #define	USERLIMIT32	USERLIMIT
2847c478bd9Sstevel@tonic-gate 
2857c478bd9Sstevel@tonic-gate #endif	/* __i386 */
2867c478bd9Sstevel@tonic-gate 
287ae115bc7Smrj /*
2880cfdb603Sjosephb  * Reserve pages just below KERNEL_TEXT for the GDT, IDT, TSS and debug info.
28982664878Sjosephb  *
29082664878Sjosephb  * For now, DEBUG_INFO_VA must be first in this list for "xm" initiated dumps
29182664878Sjosephb  * of solaris domUs to be usable with mdb. Relying on a fixed VA is not viable
29282664878Sjosephb  * long term, but it's the best we've got for now.
293ae115bc7Smrj  */
294ae115bc7Smrj #if !defined(_ASM)
29582664878Sjosephb #define	DEBUG_INFO_VA	(KERNEL_TEXT - MMU_PAGESIZE)
29682664878Sjosephb #define	GDT_VA		(DEBUG_INFO_VA - MMU_PAGESIZE)
2970cfdb603Sjosephb #define	IDT_VA		(GDT_VA - MMU_PAGESIZE)
2980cfdb603Sjosephb #define	KTSS_VA		(IDT_VA - MMU_PAGESIZE)
2990cfdb603Sjosephb #define	DFTSS_VA	(KTSS_VA - MMU_PAGESIZE)
30082664878Sjosephb #define	MISC_VA_BASE	(DFTSS_VA)
3010cfdb603Sjosephb #define	MISC_VA_SIZE	(KERNEL_TEXT - MISC_VA_BASE)
302ae115bc7Smrj #endif /* !_ASM */
303ae115bc7Smrj 
304ae115bc7Smrj #if !defined(_ASM) && !defined(_KMDB)
305ae115bc7Smrj extern uintptr_t kernelbase, segmap_start, segmapsize;
3067c478bd9Sstevel@tonic-gate #endif
3077c478bd9Sstevel@tonic-gate 
3087c478bd9Sstevel@tonic-gate /*
3097c478bd9Sstevel@tonic-gate  * ARGSBASE is the base virtual address of the range which
3107c478bd9Sstevel@tonic-gate  * the kernel uses to map the arguments for exec.
3117c478bd9Sstevel@tonic-gate  */
3127c478bd9Sstevel@tonic-gate #define	ARGSBASE	PROMSTART
3137c478bd9Sstevel@tonic-gate 
3147c478bd9Sstevel@tonic-gate /*
3157c478bd9Sstevel@tonic-gate  * reserve space for modules
3167c478bd9Sstevel@tonic-gate  */
3177c478bd9Sstevel@tonic-gate #define	MODTEXT	(1024 * 1024 * 2)
3187c478bd9Sstevel@tonic-gate #define	MODDATA	(1024 * 300)
3197c478bd9Sstevel@tonic-gate 
3207c478bd9Sstevel@tonic-gate /*
3217c478bd9Sstevel@tonic-gate  * The heap has a region allocated from it of HEAPTEXT_SIZE bytes specifically
3227c478bd9Sstevel@tonic-gate  * for module text.
3237c478bd9Sstevel@tonic-gate  */
3247c478bd9Sstevel@tonic-gate #define	HEAPTEXT_SIZE		(64 * 1024 * 1024)	/* bytes */
3257c478bd9Sstevel@tonic-gate 
3267c478bd9Sstevel@tonic-gate /*
3277c478bd9Sstevel@tonic-gate  * Size of a kernel threads stack.  It must be a whole number of pages
3287c478bd9Sstevel@tonic-gate  * since the segment it comes from will only allocate space in pages.
3297c478bd9Sstevel@tonic-gate  */
3307c478bd9Sstevel@tonic-gate #define	T_STACKSZ	2*PAGESIZE
3317c478bd9Sstevel@tonic-gate 
3327c478bd9Sstevel@tonic-gate /*
3337c478bd9Sstevel@tonic-gate  * Size of a cpu startup thread stack.  (It must be a whole number of pages
3347c478bd9Sstevel@tonic-gate  * since the containing segment only allocates space in pages.)
3357c478bd9Sstevel@tonic-gate  */
3367c478bd9Sstevel@tonic-gate 
3377c478bd9Sstevel@tonic-gate #define	STARTUP_STKSZ	3*PAGESIZE
3387c478bd9Sstevel@tonic-gate 
3397c478bd9Sstevel@tonic-gate /*
3407c478bd9Sstevel@tonic-gate  * Bus types
3417c478bd9Sstevel@tonic-gate  */
3427c478bd9Sstevel@tonic-gate #define	BTISA		1
3437c478bd9Sstevel@tonic-gate #define	BTEISA		2
3447c478bd9Sstevel@tonic-gate #define	BTMCA		3
3457c478bd9Sstevel@tonic-gate 
3467c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
3477c478bd9Sstevel@tonic-gate }
3487c478bd9Sstevel@tonic-gate #endif
3497c478bd9Sstevel@tonic-gate 
3507c478bd9Sstevel@tonic-gate #endif	/* _SYS_MACHPARAM_H */
351