void clear_page(void *page);
void copy_page(void *to, void *from);
+extern unsigned long end_pfn;
+extern unsigned long end_pfn_map;
+extern unsigned long phys_base;
+
extern unsigned long __phys_addr(unsigned long);
#define __phys_reloc_hide(x) (x)
#define native_pte_val(x) ((x).pte)
#define native_make_pte(x) ((pte_t) { (x) } )
+#define vmemmap ((struct page *)VMEMMAP_START)
+
#endif /* !__ASSEMBLY__ */
#endif /* CONFIG_X86_64 */
#define pfn_valid(pfn) ((pfn) < max_mapnr)
#endif /* CONFIG_FLATMEM */
+extern int nx_enabled;
+
+/*
+ * 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;
+extern int page_is_ram(unsigned long pagenr);
+
+#define VMALLOC_RESERVE ((unsigned long)__VMALLOC_RESERVE)
+#define MAXMEM (-__PAGE_OFFSET-__VMALLOC_RESERVE)
+
#ifdef CONFIG_X86_USE_3DNOW
#include <asm/mmx.h>
#endif /* __ASSEMBLY__ */
+#include <asm-generic/memory_model.h>
+#include <asm-generic/page.h>
+
+#define __HAVE_ARCH_GATE_AREA 1
#ifdef CONFIG_X86_32
# include "page_32.h"
/*
* These are used to make use of C type-checking..
*/
-extern int nx_enabled;
#endif /* !__ASSEMBLY__ */
struct vm_area_struct;
-/*
- * 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;
-
-extern int page_is_ram(unsigned long pagenr);
-
#endif /* __ASSEMBLY__ */
-#define VMALLOC_RESERVE ((unsigned long)__VMALLOC_RESERVE)
-#define MAXMEM (-__PAGE_OFFSET-__VMALLOC_RESERVE)
-
-#include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
-#define __HAVE_ARCH_GATE_AREA 1
#endif /* __KERNEL__ */
#endif /* _I386_PAGE_H */
#ifdef __KERNEL__
#ifndef __ASSEMBLY__
-extern unsigned long end_pfn;
-extern unsigned long end_pfn_map;
-
-
-extern unsigned long phys_base;
-
#endif /* !__ASSEMBLY__ */
#ifndef __ASSEMBLY__
-#include <asm/bug.h>
#endif /* __ASSEMBLY__ */
-#define __HAVE_ARCH_GATE_AREA 1
-#define vmemmap ((struct page *)VMEMMAP_START)
-
-#include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
-
#endif /* __KERNEL__ */
#ifdef CONFIG_FLATMEM