blob: 41f86207dc860776caac647b7319c88387c50033 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef __ARCH_LIMITS_H__
#define __ARCH_LIMITS_H__
#define __PAGE_SHIFT 12
#ifdef __ASSEMBLY__
#define __PAGE_SIZE (1 << __PAGE_SHIFT)
#else
#ifdef __x86_64__
#define __PAGE_SIZE (1UL << __PAGE_SHIFT)
#else
#define __PAGE_SIZE (1ULL << __PAGE_SHIFT)
#endif
#endif
#define __STACK_SIZE_PAGE_ORDER 4
#define __STACK_SIZE (__PAGE_SIZE * (1 << __STACK_SIZE_PAGE_ORDER))
#endif /* __ARCH_LIMITS_H__ */
|