0001
0002 #ifndef _ASM_X86_PAGE_32_H
0003 #define _ASM_X86_PAGE_32_H
0004
0005 #include <asm/page_32_types.h>
0006
0007 #ifndef __ASSEMBLY__
0008
0009 #define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET)
0010 #ifdef CONFIG_DEBUG_VIRTUAL
0011 extern unsigned long __phys_addr(unsigned long);
0012 #else
0013 #define __phys_addr(x) __phys_addr_nodebug(x)
0014 #endif
0015 #define __phys_addr_symbol(x) __phys_addr(x)
0016 #define __phys_reloc_hide(x) RELOC_HIDE((x), 0)
0017
0018 #ifdef CONFIG_FLATMEM
0019 #define pfn_valid(pfn) ((pfn) < max_mapnr)
0020 #endif
0021
0022 #include <linux/string.h>
0023
0024 static inline void clear_page(void *page)
0025 {
0026 memset(page, 0, PAGE_SIZE);
0027 }
0028
0029 static inline void copy_page(void *to, void *from)
0030 {
0031 memcpy(to, from, PAGE_SIZE);
0032 }
0033 #endif
0034
0035 #endif