diff options
Diffstat (limited to 'include/asm-x86/page_32.h')
-rw-r--r-- | include/asm-x86/page_32.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/include/asm-x86/page_32.h b/include/asm-x86/page_32.h index ab8528793f08..bdf5dba4cfb0 100644 --- a/include/asm-x86/page_32.h +++ b/include/asm-x86/page_32.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef _ASM_X86_PAGE_32_H | 1 | #ifndef ASM_X86__PAGE_32_H |
2 | #define _ASM_X86_PAGE_32_H | 2 | #define ASM_X86__PAGE_32_H |
3 | 3 | ||
4 | /* | 4 | /* |
5 | * This handles the memory map. | 5 | * This handles the memory map. |
@@ -20,6 +20,12 @@ | |||
20 | #endif | 20 | #endif |
21 | #define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER) | 21 | #define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER) |
22 | 22 | ||
23 | #define STACKFAULT_STACK 0 | ||
24 | #define DOUBLEFAULT_STACK 1 | ||
25 | #define NMI_STACK 0 | ||
26 | #define DEBUG_STACK 0 | ||
27 | #define MCE_STACK 0 | ||
28 | #define N_EXCEPTION_STACKS 1 | ||
23 | 29 | ||
24 | #ifdef CONFIG_X86_PAE | 30 | #ifdef CONFIG_X86_PAE |
25 | /* 44=32+12, the limit we can fit into an unsigned long pfn */ | 31 | /* 44=32+12, the limit we can fit into an unsigned long pfn */ |
@@ -33,7 +39,6 @@ typedef u64 pmdval_t; | |||
33 | typedef u64 pudval_t; | 39 | typedef u64 pudval_t; |
34 | typedef u64 pgdval_t; | 40 | typedef u64 pgdval_t; |
35 | typedef u64 pgprotval_t; | 41 | typedef u64 pgprotval_t; |
36 | typedef u64 phys_addr_t; | ||
37 | 42 | ||
38 | typedef union { | 43 | typedef union { |
39 | struct { | 44 | struct { |
@@ -54,7 +59,6 @@ typedef unsigned long pmdval_t; | |||
54 | typedef unsigned long pudval_t; | 59 | typedef unsigned long pudval_t; |
55 | typedef unsigned long pgdval_t; | 60 | typedef unsigned long pgdval_t; |
56 | typedef unsigned long pgprotval_t; | 61 | typedef unsigned long pgprotval_t; |
57 | typedef unsigned long phys_addr_t; | ||
58 | 62 | ||
59 | typedef union { | 63 | typedef union { |
60 | pteval_t pte; | 64 | pteval_t pte; |
@@ -73,7 +77,12 @@ typedef struct page *pgtable_t; | |||
73 | #endif | 77 | #endif |
74 | 78 | ||
75 | #ifndef __ASSEMBLY__ | 79 | #ifndef __ASSEMBLY__ |
76 | #define __phys_addr(x) ((x) - PAGE_OFFSET) | 80 | #define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET) |
81 | #ifdef CONFIG_DEBUG_VIRTUAL | ||
82 | extern unsigned long __phys_addr(unsigned long); | ||
83 | #else | ||
84 | #define __phys_addr(x) __phys_addr_nodebug(x) | ||
85 | #endif | ||
77 | #define __phys_reloc_hide(x) RELOC_HIDE((x), 0) | 86 | #define __phys_reloc_hide(x) RELOC_HIDE((x), 0) |
78 | 87 | ||
79 | #ifdef CONFIG_FLATMEM | 88 | #ifdef CONFIG_FLATMEM |
@@ -89,13 +98,11 @@ extern int nx_enabled; | |||
89 | extern unsigned int __VMALLOC_RESERVE; | 98 | extern unsigned int __VMALLOC_RESERVE; |
90 | extern int sysctl_legacy_va_layout; | 99 | extern int sysctl_legacy_va_layout; |
91 | 100 | ||
92 | #define VMALLOC_RESERVE ((unsigned long)__VMALLOC_RESERVE) | ||
93 | #define MAXMEM (-__PAGE_OFFSET - __VMALLOC_RESERVE) | ||
94 | |||
95 | extern void find_low_pfn_range(void); | 101 | extern void find_low_pfn_range(void); |
96 | extern unsigned long init_memory_mapping(unsigned long start, | 102 | extern unsigned long init_memory_mapping(unsigned long start, |
97 | unsigned long end); | 103 | unsigned long end); |
98 | extern void initmem_init(unsigned long, unsigned long); | 104 | extern void initmem_init(unsigned long, unsigned long); |
105 | extern void free_initmem(void); | ||
99 | extern void setup_bootmem_allocator(void); | 106 | extern void setup_bootmem_allocator(void); |
100 | 107 | ||
101 | 108 | ||
@@ -126,4 +133,4 @@ static inline void copy_page(void *to, void *from) | |||
126 | #endif /* CONFIG_X86_3DNOW */ | 133 | #endif /* CONFIG_X86_3DNOW */ |
127 | #endif /* !__ASSEMBLY__ */ | 134 | #endif /* !__ASSEMBLY__ */ |
128 | 135 | ||
129 | #endif /* _ASM_X86_PAGE_32_H */ | 136 | #endif /* ASM_X86__PAGE_32_H */ |