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