]> err.no Git - linux-2.6/blob - include/asm-x86/page_64.h
x86: page.h: move pa and va related things
[linux-2.6] / include / asm-x86 / page_64.h
1 #ifndef _X86_64_PAGE_H
2 #define _X86_64_PAGE_H
3
4 #ifdef __KERNEL__
5 #ifndef __ASSEMBLY__
6
7 extern unsigned long end_pfn;
8 extern unsigned long end_pfn_map;
9
10
11 extern unsigned long phys_base;
12
13 #endif /* !__ASSEMBLY__ */
14
15 #ifndef __ASSEMBLY__
16
17 #include <asm/bug.h>
18
19 #endif /* __ASSEMBLY__ */
20
21 #define __HAVE_ARCH_GATE_AREA 1 
22 #define vmemmap ((struct page *)VMEMMAP_START)
23
24 #include <asm-generic/memory_model.h>
25 #include <asm-generic/page.h>
26
27 #endif /* __KERNEL__ */
28
29 #ifdef CONFIG_FLATMEM
30 #define pfn_valid(pfn)          ((pfn) < end_pfn)
31 #endif
32
33
34 #endif /* _X86_64_PAGE_H */