1 #ifndef _ASM_X86_PAGE_32_H
2 #define _ASM_X86_PAGE_32_H
4 #include <asm/page_32_types.h>
8 #ifdef CONFIG_HUGETLB_PAGE
9 #define HAVE_ARCH_HUGETLB_UNMAPPED_AREA
12 #define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET)
13 #ifdef CONFIG_DEBUG_VIRTUAL
14 extern unsigned long __phys_addr(unsigned long);
16 #define __phys_addr(x) __phys_addr_nodebug(x)
18 #define __phys_addr_symbol(x) __phys_addr(x)
19 #define __phys_reloc_hide(x) RELOC_HIDE((x), 0)
22 #define pfn_valid(pfn) ((pfn) < max_mapnr)
23 #endif /* CONFIG_FLATMEM */
25 #ifdef CONFIG_X86_USE_3DNOW
28 static inline void clear_page(void *page
)
33 static inline void copy_page(void *to
, void *from
)
35 mmx_copy_page(to
, from
);
37 #else /* !CONFIG_X86_USE_3DNOW */
38 #include <linux/string.h>
40 static inline void clear_page(void *page
)
42 memset(page
, 0, PAGE_SIZE
);
45 static inline void copy_page(void *to
, void *from
)
47 memcpy(to
, from
, PAGE_SIZE
);
49 #endif /* CONFIG_X86_3DNOW */
50 #endif /* !__ASSEMBLY__ */
52 #endif /* _ASM_X86_PAGE_32_H */