x86, mce: rename 64bit mce_dont_init to mce_disabled
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / x86 / include / asm / pgtable_64_types.h
blobfbf42b8e03833d0537b5e8594a4a3f06a154e180
1 #ifndef _ASM_X86_PGTABLE_64_DEFS_H
2 #define _ASM_X86_PGTABLE_64_DEFS_H
4 #ifndef __ASSEMBLY__
5 #include <linux/types.h>
7 /*
8 * These are used to make use of C type-checking..
9 */
10 typedef unsigned long pteval_t;
11 typedef unsigned long pmdval_t;
12 typedef unsigned long pudval_t;
13 typedef unsigned long pgdval_t;
14 typedef unsigned long pgprotval_t;
16 typedef struct { pteval_t pte; } pte_t;
18 #endif /* !__ASSEMBLY__ */
20 #define SHARED_KERNEL_PMD 0
21 #define PAGETABLE_LEVELS 4
24 * PGDIR_SHIFT determines what a top-level page table entry can map
26 #define PGDIR_SHIFT 39
27 #define PTRS_PER_PGD 512
30 * 3rd level page
32 #define PUD_SHIFT 30
33 #define PTRS_PER_PUD 512
36 * PMD_SHIFT determines the size of the area a middle-level
37 * page table can map
39 #define PMD_SHIFT 21
40 #define PTRS_PER_PMD 512
43 * entries per page directory level
45 #define PTRS_PER_PTE 512
47 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
48 #define PMD_MASK (~(PMD_SIZE - 1))
49 #define PUD_SIZE (_AC(1, UL) << PUD_SHIFT)
50 #define PUD_MASK (~(PUD_SIZE - 1))
51 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
52 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
55 #define MAXMEM _AC(__AC(1, UL) << MAX_PHYSMEM_BITS, UL)
56 #define VMALLOC_START _AC(0xffffc20000000000, UL)
57 #define VMALLOC_END _AC(0xffffe1ffffffffff, UL)
58 #define VMEMMAP_START _AC(0xffffe20000000000, UL)
59 #define MODULES_VADDR _AC(0xffffffffa0000000, UL)
60 #define MODULES_END _AC(0xffffffffff000000, UL)
61 #define MODULES_LEN (MODULES_END - MODULES_VADDR)
63 #endif /* _ASM_X86_PGTABLE_64_DEFS_H */