~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to extras/mini-os/include/x86/arch_limits.h

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#ifdef __x86_64__
 
11
#define __PAGE_SIZE       (1UL << __PAGE_SHIFT)
 
12
#else
 
13
#define __PAGE_SIZE       (1ULL << __PAGE_SHIFT)
 
14
#endif
 
15
#endif
 
16
 
 
17
#define __STACK_SIZE_PAGE_ORDER  4
 
18
#define __STACK_SIZE             (__PAGE_SIZE * (1 << __STACK_SIZE_PAGE_ORDER))
 
19
          
 
20
#endif /* __ARCH_LIMITS_H__ */