GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / x86 / include / asm / page_32.h
blobda4e762406f7da5913080fb5394b9d5b1197965e
1 #ifndef _ASM_X86_PAGE_32_H
2 #define _ASM_X86_PAGE_32_H
4 #include <asm/page_32_types.h>
6 #ifndef __ASSEMBLY__
8 #ifdef CONFIG_HUGETLB_PAGE
9 #define HAVE_ARCH_HUGETLB_UNMAPPED_AREA
10 #endif
12 #define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET)
13 #ifdef CONFIG_DEBUG_VIRTUAL
14 extern unsigned long __phys_addr(unsigned long);
15 #else
16 #define __phys_addr(x) __phys_addr_nodebug(x)
17 #endif
18 #define __phys_reloc_hide(x) RELOC_HIDE((x), 0)
20 #ifdef CONFIG_FLATMEM
21 #define pfn_valid(pfn) ((pfn) < max_mapnr)
22 #endif /* CONFIG_FLATMEM */
24 #ifdef CONFIG_X86_USE_3DNOW
25 #include <asm/mmx.h>
27 static inline void clear_page(void *page)
29 mmx_clear_page(page);
32 static inline void copy_page(void *to, void *from)
34 mmx_copy_page(to, from);
36 #else /* !CONFIG_X86_USE_3DNOW */
37 #include <linux/string.h>
39 static inline void clear_page(void *page)
41 memset(page, 0, PAGE_SIZE);
44 static inline void copy_page(void *to, void *from)
46 memcpy(to, from, PAGE_SIZE);
48 #endif /* CONFIG_X86_3DNOW */
49 #endif /* !__ASSEMBLY__ */
51 #endif /* _ASM_X86_PAGE_32_H */