- Update Xen patches to 3.3-rc5 and c/s 1157.
[linux-flexiantxendom0-3.2.10.git] / arch / x86 / include / mach-xen / asm / pgtable-3level_types.h
1 #ifndef _ASM_X86_PGTABLE_3LEVEL_DEFS_H
2 #define _ASM_X86_PGTABLE_3LEVEL_DEFS_H
3
4 #ifndef __ASSEMBLY__
5 #include <linux/types.h>
6
7 typedef u64     pteval_t;
8 typedef u64     pmdval_t;
9 typedef u64     pudval_t;
10 typedef u64     pgdval_t;
11 typedef u64     pgprotval_t;
12
13 typedef union {
14         struct {
15                 unsigned long pte_low, pte_high;
16         };
17         pteval_t pte;
18 } pte_t;
19 #endif  /* !__ASSEMBLY__ */
20
21 #define SHARED_KERNEL_PMD       0
22
23 #define PAGETABLE_LEVELS        3
24
25 /*
26  * PGDIR_SHIFT determines what a top-level page table entry can map
27  */
28 #define PGDIR_SHIFT     30
29 #define PTRS_PER_PGD    4
30
31 /*
32  * PMD_SHIFT determines the size of the area a middle-level
33  * page table can map
34  */
35 #define PMD_SHIFT       21
36 #define PTRS_PER_PMD    512
37
38 /*
39  * entries per page directory level
40  */
41 #define PTRS_PER_PTE    512
42
43
44 #endif /* _ASM_X86_PGTABLE_3LEVEL_DEFS_H */