1*27b03b36SApple OSS Distributions /* 2*27b03b36SApple OSS Distributions * Copyright (c) 2000-2007 Apple Inc. All rights reserved. 3*27b03b36SApple OSS Distributions */ 4*27b03b36SApple OSS Distributions 5*27b03b36SApple OSS Distributions #ifndef _BSD_ARM_VMPARAM_H_ 6*27b03b36SApple OSS Distributions #define _BSD_ARM_VMPARAM_H_ 1 7*27b03b36SApple OSS Distributions 8*27b03b36SApple OSS Distributions #if defined (__arm__) || defined (__arm64__) 9*27b03b36SApple OSS Distributions 10*27b03b36SApple OSS Distributions #include <sys/resource.h> 11*27b03b36SApple OSS Distributions 12*27b03b36SApple OSS Distributions #ifndef KERNEL 13*27b03b36SApple OSS Distributions #include <TargetConditionals.h> 14*27b03b36SApple OSS Distributions #endif 15*27b03b36SApple OSS Distributions 16*27b03b36SApple OSS Distributions #define USRSTACK (0x27E00000) /* ASLR slides stack down by up to 1MB */ 17*27b03b36SApple OSS Distributions #define USRSTACK64 (0x000000016FE00000ULL) 18*27b03b36SApple OSS Distributions 19*27b03b36SApple OSS Distributions /* 20*27b03b36SApple OSS Distributions * Virtual memory related constants, all in bytes 21*27b03b36SApple OSS Distributions */ 22*27b03b36SApple OSS Distributions #ifndef DFLDSIZ 23*27b03b36SApple OSS Distributions #define DFLDSIZ (RLIM_INFINITY) /* initial data size limit */ 24*27b03b36SApple OSS Distributions #endif 25*27b03b36SApple OSS Distributions #ifndef MAXDSIZ 26*27b03b36SApple OSS Distributions #define MAXDSIZ (RLIM_INFINITY) /* max data size */ 27*27b03b36SApple OSS Distributions #endif 28*27b03b36SApple OSS Distributions #ifndef DFLSSIZ 29*27b03b36SApple OSS Distributions /* XXX stack size default is a platform property: use getrlimit(2) */ 30*27b03b36SApple OSS Distributions #if (defined(TARGET_OS_OSX) && (TARGET_OS_OSX != 0)) || \ 31*27b03b36SApple OSS Distributions (defined(KERNEL) && XNU_TARGET_OS_OSX) 32*27b03b36SApple OSS Distributions #define DFLSSIZ (8*1024*1024 - 16*1024) 33*27b03b36SApple OSS Distributions #else 34*27b03b36SApple OSS Distributions #define DFLSSIZ (1024*1024 - 16*1024) /* initial stack size limit */ 35*27b03b36SApple OSS Distributions #endif /* TARGET_OS_OSX .. || XNU_KERNEL_PRIVATE .. */ 36*27b03b36SApple OSS Distributions #endif /* DFLSSIZ */ 37*27b03b36SApple OSS Distributions #ifndef MAXSSIZ 38*27b03b36SApple OSS Distributions /* XXX stack size limit is a platform property: use getrlimit(2) */ 39*27b03b36SApple OSS Distributions #if (defined(TARGET_OS_OSX) && (TARGET_OS_OSX != 0)) || \ 40*27b03b36SApple OSS Distributions (defined(KERNEL) && XNU_TARGET_OS_OSX) 41*27b03b36SApple OSS Distributions #define MAXSSIZ (64*1024*1024) /* max stack size */ 42*27b03b36SApple OSS Distributions #else 43*27b03b36SApple OSS Distributions #define MAXSSIZ (1024*1024) /* max stack size */ 44*27b03b36SApple OSS Distributions #endif /* TARGET_OS_OSX .. || XNU_KERNEL_PRIVATE .. */ 45*27b03b36SApple OSS Distributions #endif /* MAXSSIZ */ 46*27b03b36SApple OSS Distributions #ifndef DFLCSIZ 47*27b03b36SApple OSS Distributions #define DFLCSIZ (0) /* initial core size limit */ 48*27b03b36SApple OSS Distributions #endif 49*27b03b36SApple OSS Distributions #ifndef MAXCSIZ 50*27b03b36SApple OSS Distributions #define MAXCSIZ (RLIM_INFINITY) /* max core size */ 51*27b03b36SApple OSS Distributions #endif /* MAXCSIZ */ 52*27b03b36SApple OSS Distributions 53*27b03b36SApple OSS Distributions #endif /* defined (__arm__) || defined (__arm64__) */ 54*27b03b36SApple OSS Distributions 55*27b03b36SApple OSS Distributions #endif /* _BSD_ARM_VMPARAM_H_ */ 56