diff options
Diffstat (limited to 'include/asm-x86/page_32.h')
-rw-r--r-- | include/asm-x86/page_32.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/include/asm-x86/page_32.h b/include/asm-x86/page_32.h index c620c934e557..69e520059b26 100644 --- a/include/asm-x86/page_32.h +++ b/include/asm-x86/page_32.h | |||
@@ -1,14 +1,6 @@ | |||
1 | #ifndef _I386_PAGE_H | 1 | #ifndef _I386_PAGE_H |
2 | #define _I386_PAGE_H | 2 | #define _I386_PAGE_H |
3 | 3 | ||
4 | /* PAGE_SHIFT determines the page size */ | ||
5 | #define PAGE_SHIFT 12 | ||
6 | #define PAGE_SIZE (1UL << PAGE_SHIFT) | ||
7 | #define PAGE_MASK (~(PAGE_SIZE-1)) | ||
8 | |||
9 | #define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1)) | ||
10 | #define LARGE_PAGE_SIZE (1UL << PMD_SHIFT) | ||
11 | |||
12 | #ifdef __KERNEL__ | 4 | #ifdef __KERNEL__ |
13 | #ifndef __ASSEMBLY__ | 5 | #ifndef __ASSEMBLY__ |
14 | 6 | ||
@@ -111,7 +103,6 @@ static inline pte_t native_make_pte(unsigned long long val) | |||
111 | #define __pmd(x) native_make_pmd(x) | 103 | #define __pmd(x) native_make_pmd(x) |
112 | #endif | 104 | #endif |
113 | 105 | ||
114 | #define HPAGE_SHIFT 21 | ||
115 | #include <asm-generic/pgtable-nopud.h> | 106 | #include <asm-generic/pgtable-nopud.h> |
116 | #else /* !CONFIG_X86_PAE */ | 107 | #else /* !CONFIG_X86_PAE */ |
117 | typedef struct { unsigned long pte_low; } pte_t; | 108 | typedef struct { unsigned long pte_low; } pte_t; |
@@ -139,19 +130,11 @@ static inline pte_t native_make_pte(unsigned long val) | |||
139 | return (pte_t) { .pte_low = val }; | 130 | return (pte_t) { .pte_low = val }; |
140 | } | 131 | } |
141 | 132 | ||
142 | #define HPAGE_SHIFT 22 | ||
143 | #include <asm-generic/pgtable-nopmd.h> | 133 | #include <asm-generic/pgtable-nopmd.h> |
144 | #endif /* CONFIG_X86_PAE */ | 134 | #endif /* CONFIG_X86_PAE */ |
145 | 135 | ||
146 | #define PTE_MASK PAGE_MASK | 136 | #define PTE_MASK PAGE_MASK |
147 | 137 | ||
148 | #ifdef CONFIG_HUGETLB_PAGE | ||
149 | #define HPAGE_SIZE ((1UL) << HPAGE_SHIFT) | ||
150 | #define HPAGE_MASK (~(HPAGE_SIZE - 1)) | ||
151 | #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT) | ||
152 | #define HAVE_ARCH_HUGETLB_UNMAPPED_AREA | ||
153 | #endif | ||
154 | |||
155 | #define pgprot_val(x) ((x).pgprot) | 138 | #define pgprot_val(x) ((x).pgprot) |
156 | #define __pgprot(x) ((pgprot_t) { (x) } ) | 139 | #define __pgprot(x) ((pgprot_t) { (x) } ) |
157 | 140 | ||
@@ -164,22 +147,6 @@ static inline pte_t native_make_pte(unsigned long val) | |||
164 | 147 | ||
165 | #endif /* !__ASSEMBLY__ */ | 148 | #endif /* !__ASSEMBLY__ */ |
166 | 149 | ||
167 | /* to align the pointer to the (next) page boundary */ | ||
168 | #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) | ||
169 | |||
170 | /* | ||
171 | * This handles the memory map.. We could make this a config | ||
172 | * option, but too many people screw it up, and too few need | ||
173 | * it. | ||
174 | * | ||
175 | * A __PAGE_OFFSET of 0xC0000000 means that the kernel has | ||
176 | * a virtual address space of one gigabyte, which limits the | ||
177 | * amount of physical memory you can use to about 950MB. | ||
178 | * | ||
179 | * If you want more physical memory than this then see the CONFIG_HIGHMEM4G | ||
180 | * and CONFIG_HIGHMEM64G options in the kernel configuration. | ||
181 | */ | ||
182 | |||
183 | #ifndef __ASSEMBLY__ | 150 | #ifndef __ASSEMBLY__ |
184 | 151 | ||
185 | struct vm_area_struct; | 152 | struct vm_area_struct; |
@@ -196,14 +163,6 @@ extern int page_is_ram(unsigned long pagenr); | |||
196 | 163 | ||
197 | #endif /* __ASSEMBLY__ */ | 164 | #endif /* __ASSEMBLY__ */ |
198 | 165 | ||
199 | #ifdef __ASSEMBLY__ | ||
200 | #define __PAGE_OFFSET CONFIG_PAGE_OFFSET | ||
201 | #else | ||
202 | #define __PAGE_OFFSET ((unsigned long)CONFIG_PAGE_OFFSET) | ||
203 | #endif | ||
204 | |||
205 | |||
206 | #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET) | ||
207 | #define VMALLOC_RESERVE ((unsigned long)__VMALLOC_RESERVE) | 166 | #define VMALLOC_RESERVE ((unsigned long)__VMALLOC_RESERVE) |
208 | #define MAXMEM (-__PAGE_OFFSET-__VMALLOC_RESERVE) | 167 | #define MAXMEM (-__PAGE_OFFSET-__VMALLOC_RESERVE) |
209 | #define __pa(x) ((unsigned long)(x)-PAGE_OFFSET) | 168 | #define __pa(x) ((unsigned long)(x)-PAGE_OFFSET) |
@@ -219,11 +178,6 @@ extern int page_is_ram(unsigned long pagenr); | |||
219 | 178 | ||
220 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) | 179 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) |
221 | 180 | ||
222 | #define VM_DATA_DEFAULT_FLAGS \ | ||
223 | (VM_READ | VM_WRITE | \ | ||
224 | ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \ | ||
225 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | ||
226 | |||
227 | #include <asm-generic/memory_model.h> | 181 | #include <asm-generic/memory_model.h> |
228 | #include <asm-generic/page.h> | 182 | #include <asm-generic/page.h> |
229 | 183 | ||