Files
xen/extras/mini-os/include/x86/arch_limits.h
T
2008-05-08 14:32:11 +01:00

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__ */