1 2#ifndef __ARCH_LIMITS_H__ 3#define __ARCH_LIMITS_H__ 4 5#define __PAGE_SHIFT 12 6 7#ifdef __ASSEMBLY__ 8#define __PAGE_SIZE (1 << __PAGE_SHIFT) 9#else 10/* XXX: must be ULL for correct integer promotion in pte calculations */ 11#define __PAGE_SIZE (1ULL << __PAGE_SHIFT) 12#endif 13 14#define __STACK_SIZE_PAGE_ORDER 6 15#define __STACK_SIZE (__PAGE_SIZE * (1 << __STACK_SIZE_PAGE_ORDER)) 16 17#endif /* __ARCH_LIMITS_H__ */ 18