mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
21 lines
449 B
C
21 lines
449 B
C
|
|
#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__ */
|