x86_64, traps: Stop using IST for #SS
[pandora-kernel.git] / arch / x86 / include / asm / page_32_types.h
1 #ifndef _ASM_X86_PAGE_32_DEFS_H
2 #define _ASM_X86_PAGE_32_DEFS_H
3
4 #include <linux/const.h>
5
6 /*
7  * This handles the memory map.
8  *
9  * A __PAGE_OFFSET of 0xC0000000 means that the kernel has
10  * a virtual address space of one gigabyte, which limits the
11  * amount of physical memory you can use to about 950MB.
12  *
13  * If you want more physical memory than this then see the CONFIG_HIGHMEM4G
14  * and CONFIG_HIGHMEM64G options in the kernel configuration.
15  */
16 #define __PAGE_OFFSET           _AC(CONFIG_PAGE_OFFSET, UL)
17
18 #define THREAD_ORDER    1
19 #define THREAD_SIZE     (PAGE_SIZE << THREAD_ORDER)
20
21 #define DOUBLEFAULT_STACK 1
22 #define NMI_STACK 0
23 #define DEBUG_STACK 0
24 #define MCE_STACK 0
25 #define N_EXCEPTION_STACKS 1
26
27 #ifdef CONFIG_X86_PAE
28 /* 44=32+12, the limit we can fit into an unsigned long pfn */
29 #define __PHYSICAL_MASK_SHIFT   44
30 #define __VIRTUAL_MASK_SHIFT    32
31
32 #else  /* !CONFIG_X86_PAE */
33 #define __PHYSICAL_MASK_SHIFT   32
34 #define __VIRTUAL_MASK_SHIFT    32
35 #endif  /* CONFIG_X86_PAE */
36
37 /*
38  * Kernel image size is limited to 512 MB (see in arch/x86/kernel/head_32.S)
39  */
40 #define KERNEL_IMAGE_SIZE       (512 * 1024 * 1024)
41
42 #ifndef __ASSEMBLY__
43
44 /*
45  * This much address space is reserved for vmalloc() and iomap()
46  * as well as fixmap mappings.
47  */
48 extern unsigned int __VMALLOC_RESERVE;
49 extern int sysctl_legacy_va_layout;
50
51 extern void find_low_pfn_range(void);
52 extern void setup_bootmem_allocator(void);
53
54 #endif  /* !__ASSEMBLY__ */
55
56 #endif /* _ASM_X86_PAGE_32_DEFS_H */