]> git.saurik.com Git - apple/xnu.git/blob - bsd/arm/vmparam.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / bsd / arm / vmparam.h
1 /*
2 * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
3 */
4
5 #ifndef _BSD_ARM_VMPARAM_H_
6 #define _BSD_ARM_VMPARAM_H_ 1
7
8 #include <sys/resource.h>
9
10 #ifndef KERNEL
11 #include <TargetConditionals.h>
12 #endif
13
14 #define USRSTACK (0x27E00000) /* ASLR slides stack down by up to 1MB */
15 #define USRSTACK64 (0x000000016FE00000ULL)
16
17 /*
18 * Virtual memory related constants, all in bytes
19 */
20 #ifndef DFLDSIZ
21 #define DFLDSIZ (RLIM_INFINITY) /* initial data size limit */
22 #endif
23 #ifndef MAXDSIZ
24 #define MAXDSIZ (RLIM_INFINITY) /* max data size */
25 #endif
26 #ifndef DFLSSIZ
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)
31 #else
32 #define DFLSSIZ (1024*1024 - 16*1024) /* initial stack size limit */
33 #endif /* TARGET_OS_OSX .. || XNU_KERNEL_PRIVATE .. */
34 #endif /* DFLSSIZ */
35 #ifndef MAXSSIZ
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 */
40 #else
41 #define MAXSSIZ (1024*1024) /* max stack size */
42 #endif /* TARGET_OS_OSX .. || XNU_KERNEL_PRIVATE .. */
43 #endif /* MAXSSIZ */
44 #ifndef DFLCSIZ
45 #define DFLCSIZ (0) /* initial core size limit */
46 #endif
47 #ifndef MAXCSIZ
48 #define MAXCSIZ (RLIM_INFINITY) /* max core size */
49 #endif /* MAXCSIZ */
50
51 #endif /* _BSD_ARM_VMPARAM_H_ */