a27424a2ee0dde221aa4b04207ac921a7a1751bb
[platform/kernel/linux-starfive.git] / include / asm-x86 / page_32.h
1 #ifndef _I386_PAGE_H
2 #define _I386_PAGE_H
3
4 #ifdef __KERNEL__
5 #ifndef __ASSEMBLY__
6
7 /*
8  * These are used to make use of C type-checking..
9  */
10 extern int nx_enabled;
11
12 #endif /* !__ASSEMBLY__ */
13
14 #ifndef __ASSEMBLY__
15
16 struct vm_area_struct;
17
18 /*
19  * This much address space is reserved for vmalloc() and iomap()
20  * as well as fixmap mappings.
21  */
22 extern unsigned int __VMALLOC_RESERVE;
23
24 extern int sysctl_legacy_va_layout;
25
26 extern int page_is_ram(unsigned long pagenr);
27
28 #endif /* __ASSEMBLY__ */
29
30 #define VMALLOC_RESERVE         ((unsigned long)__VMALLOC_RESERVE)
31 #define MAXMEM                  (-__PAGE_OFFSET-__VMALLOC_RESERVE)
32
33
34 #include <asm-generic/memory_model.h>
35 #include <asm-generic/page.h>
36
37 #define __HAVE_ARCH_GATE_AREA 1
38 #endif /* __KERNEL__ */
39
40 #endif /* _I386_PAGE_H */