]>
git.saurik.com Git - apple/xnu.git/blob - bsd/arm/vmparam.h
2 * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
5 #ifndef _BSD_ARM_VMPARAM_H_
6 #define _BSD_ARM_VMPARAM_H_ 1
8 #include <sys/resource.h>
11 #include <TargetConditionals.h>
14 #define USRSTACK (0x27E00000) /* ASLR slides stack down by up to 1MB */
15 #define USRSTACK64 (0x000000016FE00000ULL)
18 * Virtual memory related constants, all in bytes
21 #define DFLDSIZ (RLIM_INFINITY) /* initial data size limit */
24 #define MAXDSIZ (RLIM_INFINITY) /* max data size */
27 /* XXX stack size default is a platform property: use getrlimit(2) */
28 #if (defined(TARGET_OS_OSX) && (TARGET_OS_OSX != 0)) || \
29 (defined(KERNEL) && XNU_TARGET_OS_OSX)
30 #define DFLSSIZ (8*1024*1024 - 16*1024)
32 #define DFLSSIZ (1024*1024 - 16*1024) /* initial stack size limit */
33 #endif /* TARGET_OS_OSX .. || XNU_KERNEL_PRIVATE .. */
36 /* XXX stack size limit is a platform property: use getrlimit(2) */
37 #if (defined(TARGET_OS_OSX) && (TARGET_OS_OSX != 0)) || \
38 (defined(KERNEL) && XNU_TARGET_OS_OSX)
39 #define MAXSSIZ (64*1024*1024) /* max stack size */
41 #define MAXSSIZ (1024*1024) /* max stack size */
42 #endif /* TARGET_OS_OSX .. || XNU_KERNEL_PRIVATE .. */
45 #define DFLCSIZ (0) /* initial core size limit */
48 #define MAXCSIZ (RLIM_INFINITY) /* max core size */
51 #endif /* _BSD_ARM_VMPARAM_H_ */