Print this page
4747 remove unused [DS]SIZE_LIMIT defines


  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*      Copyright (c) 1988 AT&T     */
  22 /*        All Rights Reserved   */
  23 
  24 /*
  25  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 #ifndef _SYS_VM_MACHPARAM_H
  30 #define _SYS_VM_MACHPARAM_H
  31 
  32 #pragma ident   "%Z%%M% %I%     %E% SMI"
  33 
  34 #ifdef  __cplusplus
  35 extern "C" {
  36 #endif
  37 
  38 /*
  39  * Machine dependent constants for sun4u.
  40  */
  41 
  42 /*
  43  * USRTEXT is the start of the user text/data space.
  44  */
  45 #define USRTEXT         0x2000
  46 
  47 /*
  48  * Virtual memory related constants for UNIX resource control, all in bytes
  49  * The default stack size of 8M allows an optimization of mmu mapping
  50  * resources so that in normal use a single mmu region map entry (smeg)
  51  * can be used to map both the stack and shared libraries
  52  */
  53 #define MAXSSIZ         (0x7ffff000)    /* max stack size limit */
  54 #define DFLSSIZ         (8*1024*1024)   /* initial stack size limit */
  55 
  56 /*
  57  * DSIZE_LIMIT and SSIZE_LIMIT exist to work-around an SVVS bug (1094085),
  58  * and should be removed from the kernel (1094089)
  59  */
  60 
  61 #define DSIZE_LIMIT     (USERLIMIT-USRTEXT)     /* physical data limit */
  62 #define SSIZE_LIMIT     (0x7fffffff)    /* physical stack limit */
  63 
  64 /*
  65  * Minimum allowable virtual address space to be used
  66  * by the seg_map segment driver for fast kernel mappings.
  67  */
  68 #define MINMAPSIZE      0x200000
  69 
  70 /*
  71  * The virtual address space to be used by the seg_map segment
  72  * driver for fast kernel mappings.
  73  *
  74  * Size is 1/8th of physmem at boot.
  75  */
  76 
  77 #ifdef  _LP64
  78 #define SEGMAPSIZE      (256L * 1024L * 1024L * 1024L)  /* 256G */
  79 #else
  80 #define SEGMAPSIZE      (256 * 1024 * 1024)             /* 256M */
  81 #endif  /* _LP64 */
  82 
  83 /*
  84  * Define the default virtual size and valid size range for the segkp segment.




  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*      Copyright (c) 1988 AT&T     */
  22 /*        All Rights Reserved   */
  23 
  24 /*
  25  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 #ifndef _SYS_VM_MACHPARAM_H
  30 #define _SYS_VM_MACHPARAM_H
  31 


  32 #ifdef  __cplusplus
  33 extern "C" {
  34 #endif
  35 
  36 /*
  37  * Machine dependent constants for sun4u.
  38  */
  39 
  40 /*
  41  * USRTEXT is the start of the user text/data space.
  42  */
  43 #define USRTEXT         0x2000
  44 
  45 /*
  46  * Virtual memory related constants for UNIX resource control, all in bytes
  47  * The default stack size of 8M allows an optimization of mmu mapping
  48  * resources so that in normal use a single mmu region map entry (smeg)
  49  * can be used to map both the stack and shared libraries
  50  */
  51 #define MAXSSIZ         (0x7ffff000)    /* max stack size limit */
  52 #define DFLSSIZ         (8*1024*1024)   /* initial stack size limit */
  53 
  54 /*








  55  * Minimum allowable virtual address space to be used
  56  * by the seg_map segment driver for fast kernel mappings.
  57  */
  58 #define MINMAPSIZE      0x200000
  59 
  60 /*
  61  * The virtual address space to be used by the seg_map segment
  62  * driver for fast kernel mappings.
  63  *
  64  * Size is 1/8th of physmem at boot.
  65  */
  66 
  67 #ifdef  _LP64
  68 #define SEGMAPSIZE      (256L * 1024L * 1024L * 1024L)  /* 256G */
  69 #else
  70 #define SEGMAPSIZE      (256 * 1024 * 1024)             /* 256M */
  71 #endif  /* _LP64 */
  72 
  73 /*
  74  * Define the default virtual size and valid size range for the segkp segment.