page_32.h 759 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10
#ifndef _I386_PAGE_H
#define _I386_PAGE_H

#ifdef __KERNEL__
#ifndef __ASSEMBLY__

/*
 * These are used to make use of C type-checking..
 */
extern int nx_enabled;
11

L
Linus Torvalds 已提交
12 13 14 15
#endif /* !__ASSEMBLY__ */

#ifndef __ASSEMBLY__

16 17
struct vm_area_struct;

L
Linus Torvalds 已提交
18 19 20 21 22 23 24 25
/*
 * This much address space is reserved for vmalloc() and iomap()
 * as well as fixmap mappings.
 */
extern unsigned int __VMALLOC_RESERVE;

extern int sysctl_legacy_va_layout;

26 27
extern int page_is_ram(unsigned long pagenr);

L
Linus Torvalds 已提交
28 29 30 31
#endif /* __ASSEMBLY__ */

#define VMALLOC_RESERVE		((unsigned long)__VMALLOC_RESERVE)
#define MAXMEM			(-__PAGE_OFFSET-__VMALLOC_RESERVE)
32

L
Linus Torvalds 已提交
33

34
#include <asm-generic/memory_model.h>
35 36
#include <asm-generic/page.h>

37
#define __HAVE_ARCH_GATE_AREA 1
38 39
#endif /* __KERNEL__ */

L
Linus Torvalds 已提交
40
#endif /* _I386_PAGE_H */