diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-01-30 07:32:44 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:44 -0500 |
commit | e62f4473f32a882a537b32cb7202da8d5d7c4f1f (patch) | |
tree | d407a2b5bda90cfc999b763f7398e7f50a087b5a /include/asm-x86/page.h | |
parent | 98fd5aee348f0420afd1c636790d50aaaec6ceec (diff) |
x86: page.h: move remaining bits and pieces
# HG changeset patch
# User Jeremy Fitzhardinge <jeremy@xensource.com>
# Date 1199319657 28800
# Node ID bba9287641ff90e836d090d80b5c0a846aab7162
# Parent d617b72a0cc9d14bde2087d065c36d4ed3265761
x86: page.h: move remaining bits and pieces
Move the remaining odds and ends into page.h.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/page.h')
-rw-r--r-- | include/asm-x86/page.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h index 9830eeb57173..f65a2ae6e323 100644 --- a/include/asm-x86/page.h +++ b/include/asm-x86/page.h | |||
@@ -80,6 +80,10 @@ | |||
80 | void clear_page(void *page); | 80 | void clear_page(void *page); |
81 | void copy_page(void *to, void *from); | 81 | void copy_page(void *to, void *from); |
82 | 82 | ||
83 | extern unsigned long end_pfn; | ||
84 | extern unsigned long end_pfn_map; | ||
85 | extern unsigned long phys_base; | ||
86 | |||
83 | extern unsigned long __phys_addr(unsigned long); | 87 | extern unsigned long __phys_addr(unsigned long); |
84 | #define __phys_reloc_hide(x) (x) | 88 | #define __phys_reloc_hide(x) (x) |
85 | 89 | ||
@@ -98,6 +102,8 @@ typedef struct { pteval_t pte; } pte_t; | |||
98 | #define native_pte_val(x) ((x).pte) | 102 | #define native_pte_val(x) ((x).pte) |
99 | #define native_make_pte(x) ((pte_t) { (x) } ) | 103 | #define native_make_pte(x) ((pte_t) { (x) } ) |
100 | 104 | ||
105 | #define vmemmap ((struct page *)VMEMMAP_START) | ||
106 | |||
101 | #endif /* !__ASSEMBLY__ */ | 107 | #endif /* !__ASSEMBLY__ */ |
102 | 108 | ||
103 | #endif /* CONFIG_X86_64 */ | 109 | #endif /* CONFIG_X86_64 */ |
@@ -184,6 +190,19 @@ static inline pte_t native_make_pte(unsigned long val) | |||
184 | #define pfn_valid(pfn) ((pfn) < max_mapnr) | 190 | #define pfn_valid(pfn) ((pfn) < max_mapnr) |
185 | #endif /* CONFIG_FLATMEM */ | 191 | #endif /* CONFIG_FLATMEM */ |
186 | 192 | ||
193 | extern int nx_enabled; | ||
194 | |||
195 | /* | ||
196 | * This much address space is reserved for vmalloc() and iomap() | ||
197 | * as well as fixmap mappings. | ||
198 | */ | ||
199 | extern unsigned int __VMALLOC_RESERVE; | ||
200 | extern int sysctl_legacy_va_layout; | ||
201 | extern int page_is_ram(unsigned long pagenr); | ||
202 | |||
203 | #define VMALLOC_RESERVE ((unsigned long)__VMALLOC_RESERVE) | ||
204 | #define MAXMEM (-__PAGE_OFFSET-__VMALLOC_RESERVE) | ||
205 | |||
187 | #ifdef CONFIG_X86_USE_3DNOW | 206 | #ifdef CONFIG_X86_USE_3DNOW |
188 | #include <asm/mmx.h> | 207 | #include <asm/mmx.h> |
189 | 208 | ||
@@ -325,6 +344,10 @@ static inline pmdval_t native_pmd_val(pmd_t pmd) | |||
325 | 344 | ||
326 | #endif /* __ASSEMBLY__ */ | 345 | #endif /* __ASSEMBLY__ */ |
327 | 346 | ||
347 | #include <asm-generic/memory_model.h> | ||
348 | #include <asm-generic/page.h> | ||
349 | |||
350 | #define __HAVE_ARCH_GATE_AREA 1 | ||
328 | 351 | ||
329 | #ifdef CONFIG_X86_32 | 352 | #ifdef CONFIG_X86_32 |
330 | # include "page_32.h" | 353 | # include "page_32.h" |