1/*
2 * Machine dependent constants for powerpc64.
3 */
4
5#define USRSTACK VM_MAXUSER_ADDRESS
6
7/*
8 * Virtual memory related constants, all in bytes
9 */
10#define MAXTSIZ ((paddr_t)256*1024*1024) /* max text size */
11#ifndef DFLDSIZ
12#define DFLDSIZ ((paddr_t)512*1024*1024) /* initial data size limit */
13#endif
14#ifndef MAXDSIZ
15#define MAXDSIZ ((paddr_t)32*1024*1024*1024) /* max data size */
16#endif
17#ifndef BRKSIZ
18#define BRKSIZ ((paddr_t)16*1024*1024*1024) /* heap gap size */
19#endif
20#ifndef DFLSSIZ
21#define DFLSSIZ ((paddr_t)2*1024*1024) /* initial stack size limit */
22#endif
23#ifndef MAXSSIZ
24#define MAXSSIZ ((paddr_t)32*1024*1024) /* max stack size */
25#endif
26
27#define STACKGAP_RANDOM 256*1024
28
29/*
30 * Size of shared memory map
31 */
32#ifndef SHMMAXPGS
33#define SHMMAXPGS 1024
34#endif
35
36/*
37 * Size of User Raw I/O map
38 */
39#define USRIOSIZE 300
40
41#define VM_PHYS_SIZE (USRIOSIZE * PAGE_SIZE)
42
43#define VM_PHYSSEG_MAX 32
44#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
45
46#define VM_MIN_ADDRESS ((vaddr_t)PAGE_SIZE)
47#define VM_MAXUSER_ADDRESS 0xbffffffffffff000UL
48#define VM_MAX_ADDRESS 0xffffffffffffffffUL
49#ifdef _KERNEL
50#define VM_MIN_STACK_ADDRESS 0x9000000000000000UL
51#endif
52#define VM_MIN_KERNEL_ADDRESS 0xc000000000000000UL
53#define VM_MAX_KERNEL_ADDRESS 0xc0000007ffffffffUL