1
2 #ifndef _ASM_X86_PAGE_32_DEFS_H
3 #define _ASM_X86_PAGE_32_DEFS_H
4
5 #include <linux/const.h>
6
7
8
9
10
11
12
13
14
15
16
17 #define __PAGE_OFFSET_BASE _AC(CONFIG_PAGE_OFFSET, UL)
18 #define __PAGE_OFFSET __PAGE_OFFSET_BASE
19
20 #define __START_KERNEL_map __PAGE_OFFSET
21
22 #define THREAD_SIZE_ORDER 1
23 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
24
25 #define IRQ_STACK_SIZE THREAD_SIZE
26
27 #define N_EXCEPTION_STACKS 1
28
29 #ifdef CONFIG_X86_PAE
30
31
32
33
34
35
36 #define __PHYSICAL_MASK_SHIFT 52
37 #define __VIRTUAL_MASK_SHIFT 32
38
39 #else
40 #define __PHYSICAL_MASK_SHIFT 32
41 #define __VIRTUAL_MASK_SHIFT 32
42 #endif
43
44
45
46
47 #define KERNEL_IMAGE_SIZE (512 * 1024 * 1024)
48
49 #ifndef __ASSEMBLY__
50
51
52
53
54
55 extern unsigned int __VMALLOC_RESERVE;
56 extern int sysctl_legacy_va_layout;
57
58 extern void find_low_pfn_range(void);
59 extern void setup_bootmem_allocator(void);
60
61 #endif
62
63 #endif