/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
#ifndef _SYS_MACHPARAM_H
#define _SYS_MACHPARAM_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _ASM
#else /* _ASM */
#define ADDRESS_C(c) (c)
#endif /* _ASM */
/*
* Machine dependent parameters and limits - sun4u version.
*/
/*
* Define the VAC symbol (etc.) if we could run on a machine
* which has a Virtual Address Cache
*
* This stuff gotta go.
*/
/*
* The maximum possible number of UPA devices in a system.
* MAX_UPA maybe defined in a platform's makefile.
*/
#ifdef _STARFIRE
/*
* We have a 7 bit id space for UPA devices in Xfire
*/
#else
#ifndef MAX_UPA
#endif
#endif /* _STARFIRE */
/*
* Maximum cpuid value that we support. NCPU can be defined in a platform's
* makefile.
*/
#else
#ifndef NCPU
#endif
#endif /* _STARFIRE && !lint */
#if (NCPU <= 1)
#define NCPU_LOG2 0
#else
#error "add test for larger NCPU"
#endif
/* NCPU_P2 is NCPU rounded to a power of 2 */
/*
* Maximum number of processors that we support. With CMP processors, the
* portid may not be equal to cpuid. MAX_CPU_CHIPID can be defined in a
* platform's makefile.
*/
#ifndef MAX_CPU_CHIPID
#endif
/*
* Define the FPU symbol if we could run on a machine with an external
* FPU (i.e. not integrated with the normal machine state like the vax).
*
* The fpu is defined in the architecture manual, and the kernel hides
* its absence if it is not present, that's pretty integrated, no?
*/
/*
* MMU_PAGES* describes the physical page size used by the mapping hardware.
* PAGES* describes the logical page size used by the system.
*/
/*
* XXX make sure the MMU_PAGESHIFT definition here is
* consistent with the one in param.h
*/
/*
* DATA_ALIGN is used to define the alignment of the Unix data segment.
*/
/*
* DEFAULT KERNEL THREAD stack size.
*/
/*
* DEFAULT initial thread stack size.
*/
/*
* KERNELBASE is the virtual address which
*/
/*
* Virtual address range available to the debugger
*/
/*
* Define the userlimits
*/
/*
* Define SEGKPBASE, start of the segkp segment.
*/
/*
* Define SEGMAPBASE, start of the segmap segment.
*/
/*
* SYSBASE is the virtual address which the kernel allocated memory
* mapping starts in all contexts. SYSLIMIT is the end of the Sysbase segment.
*/
/*
* BOOTTMPBASE is the base of a space that can be reclaimed
* after the kernel takes over the machine. It contains the
* boot archive and memory allocated by krtld before kmem_alloc
* is brought online.
*/
/*
* MEMSCRUBBASE is the base virtual address for the memory scrubber
* to read large pages. It MUST be 4MB page aligned.
*/
/*
* Define the kernel address space range allocated to Open Firmware
*/
/*
* ARGSBASE is the base virtual address of the range which
* the kernel uses to map the arguments for exec.
*/
/*
* PPMAPBASE is the base virtual address of the range which
* the kernel uses to quickly map pages for operations such
* as ppcopy, pagecopy, pagezero, and pagesum.
*/
/*
* PIOMAPBASE is the base virtual address at which programmable I/O registers
* are mapped. This allows such memory -- which may induce side effects when
* read -- to be cordoned off from the system at-large.
*/
/*
* Allocate space for kernel modules on nucleus pages
*/
/*
* The heap has a region allocated from it specifically for module text that
* cannot fit on the nucleus page. This region -- which starts at address
* HEAPTEXT_BASE and runs for HEAPTEXT_SIZE bytes -- has virtual holes
* punched in it: for every HEAPTEXT_MAPPED bytes of available virtual, there
* is a virtual hole of size HEAPTEXT_UNMAPPED bytes sitting beneath it. This
* assures that any text address is within HEAPTEXT_MAPPED of an unmapped
* region. The unmapped regions themselves are managed with the routines
* kobj_texthole_alloc() and kobj_texthole_free().
*/
#define HEAPTEXT_NARENAS \
/*
* Preallocate an area for setting up the user stack during
* the exec(). This way we have a faster allocator and also
* make sure the stack is always VAC aligned correctly. see
* get_arg_base() in startup.c.
*/
/*
* ktextseg+kvalloc should not use space beyond KERNEL_LIMIT32.
*/
/*
* For 64-bit kernels, rename KERNEL_LIMIT to KERNEL_LIMIT32 to more accurately
* reflect the fact that it's actually the limit for 32-bit kernel virtual
* addresses.
*/
#ifdef _STARFIRE
#else
#endif /* _STARFIRE */
/*
* Defines used for the ptl1_panic parameter, which is passed to the
* ptl1_panic assembly routine in %g1. These #defines have string
* names defined in sun4u/os/mach_cpu_states.c which should be kept up to
* date if new #defines are added.
*/
#define PTL1_BAD_DEBUG 0
/*
* Defines used for ptl1 related data structs.
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_MACHPARAM_H */