1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate * 4*7c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate * with the License. 8*7c478bd9Sstevel@tonic-gate * 9*7c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate * and limitations under the License. 13*7c478bd9Sstevel@tonic-gate * 14*7c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate * 20*7c478bd9Sstevel@tonic-gate * CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate */ 22*7c478bd9Sstevel@tonic-gate /* 23*7c478bd9Sstevel@tonic-gate * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate * Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate */ 26*7c478bd9Sstevel@tonic-gate 27*7c478bd9Sstevel@tonic-gate #ifndef _SYS_MACHPARAM_H 28*7c478bd9Sstevel@tonic-gate #define _SYS_MACHPARAM_H 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 33*7c478bd9Sstevel@tonic-gate extern "C" { 34*7c478bd9Sstevel@tonic-gate #endif 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gate #ifndef _ASM 37*7c478bd9Sstevel@tonic-gate #define ADDRESS_C(c) c ## ul 38*7c478bd9Sstevel@tonic-gate #else /* _ASM */ 39*7c478bd9Sstevel@tonic-gate #define ADDRESS_C(c) (c) 40*7c478bd9Sstevel@tonic-gate #endif /* _ASM */ 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gate /* 43*7c478bd9Sstevel@tonic-gate * Machine dependent parameters and limits - sun4v version. 44*7c478bd9Sstevel@tonic-gate */ 45*7c478bd9Sstevel@tonic-gate 46*7c478bd9Sstevel@tonic-gate /* 47*7c478bd9Sstevel@tonic-gate * Define the VAC symbol (etc.) if we could run on a machine 48*7c478bd9Sstevel@tonic-gate * which has a Virtual Address Cache 49*7c478bd9Sstevel@tonic-gate */ 50*7c478bd9Sstevel@tonic-gate 51*7c478bd9Sstevel@tonic-gate /* 52*7c478bd9Sstevel@tonic-gate * The maximum possible number of UPA devices in a system. 53*7c478bd9Sstevel@tonic-gate * MAX_UPA maybe defined in a platform's makefile. 54*7c478bd9Sstevel@tonic-gate */ 55*7c478bd9Sstevel@tonic-gate #ifndef MAX_UPA 56*7c478bd9Sstevel@tonic-gate #define MAX_UPA 32 57*7c478bd9Sstevel@tonic-gate #endif 58*7c478bd9Sstevel@tonic-gate 59*7c478bd9Sstevel@tonic-gate /* 60*7c478bd9Sstevel@tonic-gate * Maximum cpuid value that we support. NCPU can be defined in a platform's 61*7c478bd9Sstevel@tonic-gate * makefile. 62*7c478bd9Sstevel@tonic-gate */ 63*7c478bd9Sstevel@tonic-gate #ifndef NCPU 64*7c478bd9Sstevel@tonic-gate #define NCPU 64 65*7c478bd9Sstevel@tonic-gate #endif 66*7c478bd9Sstevel@tonic-gate 67*7c478bd9Sstevel@tonic-gate /* 68*7c478bd9Sstevel@tonic-gate * Maximum number of processors that we support. With CMP processors, the 69*7c478bd9Sstevel@tonic-gate * portid may not be equal to cpuid. MAX_CPU_CHIPID can be defined in a 70*7c478bd9Sstevel@tonic-gate * platform's makefile. 71*7c478bd9Sstevel@tonic-gate */ 72*7c478bd9Sstevel@tonic-gate #ifndef MAX_CPU_CHIPID 73*7c478bd9Sstevel@tonic-gate #define MAX_CPU_CHIPID NCPU 74*7c478bd9Sstevel@tonic-gate #endif 75*7c478bd9Sstevel@tonic-gate 76*7c478bd9Sstevel@tonic-gate /* 77*7c478bd9Sstevel@tonic-gate * Define the FPU symbol if we could run on a machine with an external 78*7c478bd9Sstevel@tonic-gate * FPU (i.e. not integrated with the normal machine state like the vax). 79*7c478bd9Sstevel@tonic-gate * 80*7c478bd9Sstevel@tonic-gate * The fpu is defined in the architecture manual, and the kernel hides 81*7c478bd9Sstevel@tonic-gate * its absence if it is not present, that's pretty integrated, no? 82*7c478bd9Sstevel@tonic-gate */ 83*7c478bd9Sstevel@tonic-gate 84*7c478bd9Sstevel@tonic-gate /* 85*7c478bd9Sstevel@tonic-gate * MMU_PAGES* describes the physical page size used by the mapping hardware. 86*7c478bd9Sstevel@tonic-gate * PAGES* describes the logical page size used by the system. 87*7c478bd9Sstevel@tonic-gate */ 88*7c478bd9Sstevel@tonic-gate #define MMU_PAGE_SIZES 6 /* max sun4v mmu-supported page sizes */ 89*7c478bd9Sstevel@tonic-gate #define DEFAULT_MMU_PAGE_SIZES 4 /* default sun4v supported page sizes */ 90*7c478bd9Sstevel@tonic-gate 91*7c478bd9Sstevel@tonic-gate /* 92*7c478bd9Sstevel@tonic-gate * XXX make sure the MMU_PAGESHIFT definition here is 93*7c478bd9Sstevel@tonic-gate * consistent with the one in param.h 94*7c478bd9Sstevel@tonic-gate */ 95*7c478bd9Sstevel@tonic-gate #define MMU_PAGESHIFT 13 96*7c478bd9Sstevel@tonic-gate #define MMU_PAGESIZE (1<<MMU_PAGESHIFT) 97*7c478bd9Sstevel@tonic-gate #define MMU_PAGEOFFSET (MMU_PAGESIZE - 1) 98*7c478bd9Sstevel@tonic-gate #define MMU_PAGEMASK (~MMU_PAGEOFFSET) 99*7c478bd9Sstevel@tonic-gate 100*7c478bd9Sstevel@tonic-gate #define MMU_PAGESHIFT64K 16 101*7c478bd9Sstevel@tonic-gate #define MMU_PAGESIZE64K (1 << MMU_PAGESHIFT64K) 102*7c478bd9Sstevel@tonic-gate #define MMU_PAGEOFFSET64K (MMU_PAGESIZE64K - 1) 103*7c478bd9Sstevel@tonic-gate #define MMU_PAGEMASK64K (~MMU_PAGEOFFSET64K) 104*7c478bd9Sstevel@tonic-gate 105*7c478bd9Sstevel@tonic-gate #define MMU_PAGESHIFT512K 19 106*7c478bd9Sstevel@tonic-gate #define MMU_PAGESIZE512K (1 << MMU_PAGESHIFT512K) 107*7c478bd9Sstevel@tonic-gate #define MMU_PAGEOFFSET512K (MMU_PAGESIZE512K - 1) 108*7c478bd9Sstevel@tonic-gate #define MMU_PAGEMASK512K (~MMU_PAGEOFFSET512K) 109*7c478bd9Sstevel@tonic-gate 110*7c478bd9Sstevel@tonic-gate #define MMU_PAGESHIFT4M 22 111*7c478bd9Sstevel@tonic-gate #define MMU_PAGESIZE4M (1 << MMU_PAGESHIFT4M) 112*7c478bd9Sstevel@tonic-gate #define MMU_PAGEOFFSET4M (MMU_PAGESIZE4M - 1) 113*7c478bd9Sstevel@tonic-gate #define MMU_PAGEMASK4M (~MMU_PAGEOFFSET4M) 114*7c478bd9Sstevel@tonic-gate 115*7c478bd9Sstevel@tonic-gate #define MMU_PAGESHIFT32M 25 116*7c478bd9Sstevel@tonic-gate #define MMU_PAGESIZE32M (1 << MMU_PAGESHIFT32M) 117*7c478bd9Sstevel@tonic-gate #define MMU_PAGEOFFSET32M (MMU_PAGESIZE32M - 1) 118*7c478bd9Sstevel@tonic-gate #define MMU_PAGEMASK32M (~MMU_PAGEOFFSET32M) 119*7c478bd9Sstevel@tonic-gate 120*7c478bd9Sstevel@tonic-gate #define MMU_PAGESHIFT256M 28 121*7c478bd9Sstevel@tonic-gate #define MMU_PAGESIZE256M (1 << MMU_PAGESHIFT256M) 122*7c478bd9Sstevel@tonic-gate #define MMU_PAGEOFFSET256M (MMU_PAGESIZE256M - 1) 123*7c478bd9Sstevel@tonic-gate #define MMU_PAGEMASK256M (~MMU_PAGEOFFSET256M) 124*7c478bd9Sstevel@tonic-gate 125*7c478bd9Sstevel@tonic-gate #define PAGESHIFT 13 126*7c478bd9Sstevel@tonic-gate #define PAGESIZE (1<<PAGESHIFT) 127*7c478bd9Sstevel@tonic-gate #define PAGEOFFSET (PAGESIZE - 1) 128*7c478bd9Sstevel@tonic-gate #define PAGEMASK (~PAGEOFFSET) 129*7c478bd9Sstevel@tonic-gate 130*7c478bd9Sstevel@tonic-gate /* 131*7c478bd9Sstevel@tonic-gate * DATA_ALIGN is used to define the alignment of the Unix data segment. 132*7c478bd9Sstevel@tonic-gate */ 133*7c478bd9Sstevel@tonic-gate #define DATA_ALIGN ADDRESS_C(0x2000) 134*7c478bd9Sstevel@tonic-gate 135*7c478bd9Sstevel@tonic-gate /* 136*7c478bd9Sstevel@tonic-gate * DEFAULT KERNEL THREAD stack size. 137*7c478bd9Sstevel@tonic-gate */ 138*7c478bd9Sstevel@tonic-gate 139*7c478bd9Sstevel@tonic-gate #define DEFAULTSTKSZ (3*PAGESIZE) 140*7c478bd9Sstevel@tonic-gate 141*7c478bd9Sstevel@tonic-gate /* 142*7c478bd9Sstevel@tonic-gate * DEFAULT initial thread stack size. 143*7c478bd9Sstevel@tonic-gate */ 144*7c478bd9Sstevel@tonic-gate #define T0STKSZ (2 * DEFAULTSTKSZ) 145*7c478bd9Sstevel@tonic-gate 146*7c478bd9Sstevel@tonic-gate /* 147*7c478bd9Sstevel@tonic-gate * KERNELBASE is the virtual address which 148*7c478bd9Sstevel@tonic-gate * the kernel text/data mapping starts in all contexts. 149*7c478bd9Sstevel@tonic-gate */ 150*7c478bd9Sstevel@tonic-gate #define KERNELBASE ADDRESS_C(0x01000000) 151*7c478bd9Sstevel@tonic-gate 152*7c478bd9Sstevel@tonic-gate /* 153*7c478bd9Sstevel@tonic-gate * Define the userlimits 154*7c478bd9Sstevel@tonic-gate */ 155*7c478bd9Sstevel@tonic-gate 156*7c478bd9Sstevel@tonic-gate #define USERLIMIT ADDRESS_C(0xFFFFFFFF80000000) 157*7c478bd9Sstevel@tonic-gate #define USERLIMIT32 ADDRESS_C(0xFFC00000) 158*7c478bd9Sstevel@tonic-gate 159*7c478bd9Sstevel@tonic-gate /* 160*7c478bd9Sstevel@tonic-gate * Define SEGKPBASE, start of the segkp segment. 161*7c478bd9Sstevel@tonic-gate */ 162*7c478bd9Sstevel@tonic-gate 163*7c478bd9Sstevel@tonic-gate #define SEGKPBASE ADDRESS_C(0x2a100000000) 164*7c478bd9Sstevel@tonic-gate 165*7c478bd9Sstevel@tonic-gate /* 166*7c478bd9Sstevel@tonic-gate * Define SEGMAPBASE, start of the segmap segment. 167*7c478bd9Sstevel@tonic-gate */ 168*7c478bd9Sstevel@tonic-gate 169*7c478bd9Sstevel@tonic-gate #define SEGMAPBASE ADDRESS_C(0x2a750000000) 170*7c478bd9Sstevel@tonic-gate 171*7c478bd9Sstevel@tonic-gate /* 172*7c478bd9Sstevel@tonic-gate * SYSBASE is the virtual address which the kernel allocated memory 173*7c478bd9Sstevel@tonic-gate * mapping starts in all contexts. SYSLIMIT is the end of the Sysbase segment. 174*7c478bd9Sstevel@tonic-gate */ 175*7c478bd9Sstevel@tonic-gate 176*7c478bd9Sstevel@tonic-gate #define SYSBASE ADDRESS_C(0x30000000000) 177*7c478bd9Sstevel@tonic-gate #define SYSLIMIT ADDRESS_C(0x70000000000) 178*7c478bd9Sstevel@tonic-gate #define SYSBASE32 ADDRESS_C(0x70000000) 179*7c478bd9Sstevel@tonic-gate #define SYSLIMIT32 ADDRESS_C(0x80000000) 180*7c478bd9Sstevel@tonic-gate 181*7c478bd9Sstevel@tonic-gate /* 182*7c478bd9Sstevel@tonic-gate * MEMSCRUBBASE is the base virtual address for the memory scrubber 183*7c478bd9Sstevel@tonic-gate * to read large pages. It MUST be 4MB page aligned. 184*7c478bd9Sstevel@tonic-gate */ 185*7c478bd9Sstevel@tonic-gate 186*7c478bd9Sstevel@tonic-gate #define MEMSCRUBBASE 0x2a000000000 187*7c478bd9Sstevel@tonic-gate 188*7c478bd9Sstevel@tonic-gate /* 189*7c478bd9Sstevel@tonic-gate * Define the kernel address space range allocated to Open Firmware 190*7c478bd9Sstevel@tonic-gate */ 191*7c478bd9Sstevel@tonic-gate #define OFW_START_ADDR 0xf0000000 192*7c478bd9Sstevel@tonic-gate #define OFW_END_ADDR 0xffffffff 193*7c478bd9Sstevel@tonic-gate 194*7c478bd9Sstevel@tonic-gate /* 195*7c478bd9Sstevel@tonic-gate * ARGSBASE is the base virtual address of the range which 196*7c478bd9Sstevel@tonic-gate * the kernel uses to map the arguments for exec. 197*7c478bd9Sstevel@tonic-gate */ 198*7c478bd9Sstevel@tonic-gate #define ARGSBASE (MEMSCRUBBASE - NCARGS) 199*7c478bd9Sstevel@tonic-gate 200*7c478bd9Sstevel@tonic-gate /* 201*7c478bd9Sstevel@tonic-gate * PPMAPBASE is the base virtual address of the range which 202*7c478bd9Sstevel@tonic-gate * the kernel uses to quickly map pages for operations such 203*7c478bd9Sstevel@tonic-gate * as ppcopy, pagecopy, pagezero, and pagesum. 204*7c478bd9Sstevel@tonic-gate */ 205*7c478bd9Sstevel@tonic-gate #define PPMAPSIZE (512 * 1024) 206*7c478bd9Sstevel@tonic-gate #define PPMAPBASE (ARGSBASE - PPMAPSIZE) 207*7c478bd9Sstevel@tonic-gate 208*7c478bd9Sstevel@tonic-gate #define MAXPP_SLOTS ADDRESS_C(16) 209*7c478bd9Sstevel@tonic-gate #define PPMAP_FAST_SIZE (MAXPP_SLOTS * PAGESIZE * NCPU) 210*7c478bd9Sstevel@tonic-gate #define PPMAP_FAST_BASE (PPMAPBASE - PPMAP_FAST_SIZE) 211*7c478bd9Sstevel@tonic-gate 212*7c478bd9Sstevel@tonic-gate /* 213*7c478bd9Sstevel@tonic-gate * PIOMAPBASE is the base virtual address at which programmable I/O registers 214*7c478bd9Sstevel@tonic-gate * are mapped. This allows such memory -- which may induce side effects when 215*7c478bd9Sstevel@tonic-gate * read -- to be cordoned off from the system at-large. 216*7c478bd9Sstevel@tonic-gate */ 217*7c478bd9Sstevel@tonic-gate #define PIOMAPSIZE (1024 * 1024 * 1024 * (uintptr_t)5) 218*7c478bd9Sstevel@tonic-gate #define PIOMAPBASE (PPMAP_FAST_BASE - PIOMAPSIZE) 219*7c478bd9Sstevel@tonic-gate 220*7c478bd9Sstevel@tonic-gate /* 221*7c478bd9Sstevel@tonic-gate * Allocate space for kernel modules on nucleus pages 222*7c478bd9Sstevel@tonic-gate */ 223*7c478bd9Sstevel@tonic-gate #define MODDATA 1024 * 256 224*7c478bd9Sstevel@tonic-gate 225*7c478bd9Sstevel@tonic-gate /* 226*7c478bd9Sstevel@tonic-gate * On systems with <MODTEXT_SM_SIZE MB available physical memory, 227*7c478bd9Sstevel@tonic-gate * cap the in-nucleus module text to MODTEXT_SM_CAP bytes. The 228*7c478bd9Sstevel@tonic-gate * cap must be a multiple of the base page size. Also see startup.c. 229*7c478bd9Sstevel@tonic-gate */ 230*7c478bd9Sstevel@tonic-gate #define MODTEXT_SM_CAP (0x200000) /* bytes */ 231*7c478bd9Sstevel@tonic-gate #define MODTEXT_SM_SIZE (256) /* MB */ 232*7c478bd9Sstevel@tonic-gate 233*7c478bd9Sstevel@tonic-gate /* 234*7c478bd9Sstevel@tonic-gate * The heap has a region allocated from it specifically for module text that 235*7c478bd9Sstevel@tonic-gate * cannot fit on the nucleus page. This region -- which starts at address 236*7c478bd9Sstevel@tonic-gate * HEAPTEXT_BASE and runs for HEAPTEXT_SIZE bytes -- has virtual holes 237*7c478bd9Sstevel@tonic-gate * punched in it: for every HEAPTEXT_MAPPED bytes of available virtual, there 238*7c478bd9Sstevel@tonic-gate * is a virtual hole of size HEAPTEXT_UNMAPPED bytes sitting beneath it. This 239*7c478bd9Sstevel@tonic-gate * assures that any text address is within HEAPTEXT_MAPPED of an unmapped 240*7c478bd9Sstevel@tonic-gate * region. The unmapped regions themselves are managed with the routines 241*7c478bd9Sstevel@tonic-gate * kobj_texthole_alloc() and kobj_texthole_free(). 242*7c478bd9Sstevel@tonic-gate */ 243*7c478bd9Sstevel@tonic-gate #define HEAPTEXT_SIZE (128 * 1024 * 1024) /* bytes */ 244*7c478bd9Sstevel@tonic-gate #define HEAPTEXT_OVERSIZE (64 * 1024 * 1024) /* bytes */ 245*7c478bd9Sstevel@tonic-gate #define HEAPTEXT_BASE (SYSLIMIT32 - HEAPTEXT_SIZE) 246*7c478bd9Sstevel@tonic-gate #define HEAPTEXT_MAPPED (2 * 1024 * 1024) 247*7c478bd9Sstevel@tonic-gate #define HEAPTEXT_UNMAPPED (2 * 1024 * 1024) 248*7c478bd9Sstevel@tonic-gate 249*7c478bd9Sstevel@tonic-gate #define HEAPTEXT_NARENAS \ 250*7c478bd9Sstevel@tonic-gate (HEAPTEXT_SIZE / (HEAPTEXT_MAPPED + HEAPTEXT_UNMAPPED) + 2) 251*7c478bd9Sstevel@tonic-gate 252*7c478bd9Sstevel@tonic-gate /* 253*7c478bd9Sstevel@tonic-gate * Preallocate an area for setting up the user stack during 254*7c478bd9Sstevel@tonic-gate * the exec(). This way we have a faster allocator and also 255*7c478bd9Sstevel@tonic-gate * make sure the stack is always VAC aligned correctly. see 256*7c478bd9Sstevel@tonic-gate * get_arg_base() in startup.c. 257*7c478bd9Sstevel@tonic-gate */ 258*7c478bd9Sstevel@tonic-gate #define ARG_SLOT_SIZE (0x8000) 259*7c478bd9Sstevel@tonic-gate #define ARG_SLOT_SHIFT (15) 260*7c478bd9Sstevel@tonic-gate #define N_ARG_SLOT (0x80) 261*7c478bd9Sstevel@tonic-gate 262*7c478bd9Sstevel@tonic-gate #define NARG_BASE (PIOMAPBASE - (ARG_SLOT_SIZE * N_ARG_SLOT)) 263*7c478bd9Sstevel@tonic-gate 264*7c478bd9Sstevel@tonic-gate /* 265*7c478bd9Sstevel@tonic-gate * ktextseg+kvalloc should not use space beyond KERNEL_LIMIT32. 266*7c478bd9Sstevel@tonic-gate */ 267*7c478bd9Sstevel@tonic-gate 268*7c478bd9Sstevel@tonic-gate /* 269*7c478bd9Sstevel@tonic-gate * For 64-bit kernels, rename KERNEL_LIMIT to KERNEL_LIMIT32 to more accurately 270*7c478bd9Sstevel@tonic-gate * reflect the fact that it's actually the limit for 32-bit kernel virtual 271*7c478bd9Sstevel@tonic-gate * addresses. 272*7c478bd9Sstevel@tonic-gate */ 273*7c478bd9Sstevel@tonic-gate #define KERNEL_LIMIT32 (SYSBASE32) 274*7c478bd9Sstevel@tonic-gate 275*7c478bd9Sstevel@tonic-gate #define BUSTYPE_TO_PFN(btype, pfn) \ 276*7c478bd9Sstevel@tonic-gate (((btype) << 19) | ((pfn) & 0x7FFFF)) 277*7c478bd9Sstevel@tonic-gate 278*7c478bd9Sstevel@tonic-gate /* 279*7c478bd9Sstevel@tonic-gate * Defines used for the ptl1_panic parameter, which is passed to the 280*7c478bd9Sstevel@tonic-gate * ptl1_panic assembly routine in %g1. These #defines have string 281*7c478bd9Sstevel@tonic-gate * names defined in sun4u/os/mach_cpu_states.c which should be kept up to 282*7c478bd9Sstevel@tonic-gate * date if new #defines are added. 283*7c478bd9Sstevel@tonic-gate */ 284*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_DEBUG 0 285*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_WTRAP 1 286*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_KMISS 2 287*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_KPROT_FAULT 3 288*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_ISM 4 289*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_MMUTRAP 5 290*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_TRAP 6 291*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_FPTRAP 7 292*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_INTR_REQ 8 293*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_TRACE_PTR 9 294*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_STACK 10 295*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_DTRACE_FLAGS 11 296*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_CTX_STEAL 12 297*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_ECC 13 298*7c478bd9Sstevel@tonic-gate #define PTL1_BAD_HCALL 14 299*7c478bd9Sstevel@tonic-gate 300*7c478bd9Sstevel@tonic-gate /* 301*7c478bd9Sstevel@tonic-gate * Defines used for ptl1 related data structs. 302*7c478bd9Sstevel@tonic-gate */ 303*7c478bd9Sstevel@tonic-gate #define PTL1_MAXTL 4 304*7c478bd9Sstevel@tonic-gate #define PTL1_DEBUG_TRAP 0x7C 305*7c478bd9Sstevel@tonic-gate #define PTL1_SSIZE 1024 /* minimum stack size */ 306*7c478bd9Sstevel@tonic-gate #define CPU_ALLOC_SIZE MMU_PAGESIZE 307*7c478bd9Sstevel@tonic-gate 308*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 309*7c478bd9Sstevel@tonic-gate } 310*7c478bd9Sstevel@tonic-gate #endif 311*7c478bd9Sstevel@tonic-gate 312*7c478bd9Sstevel@tonic-gate #endif /* _SYS_MACHPARAM_H */ 313