11965aae3SH. Peter Anvin #ifndef _ASM_X86_PAGE_64_H 21965aae3SH. Peter Anvin #define _ASM_X86_PAGE_64_H 3bb898558SAl Viro 451c78eb3SJeremy Fitzhardinge #include <asm/page_64_types.h> 5bb898558SAl Viro 6*fb50b020SAlexander Duyck #ifndef __ASSEMBLY__ 7*fb50b020SAlexander Duyck 8*fb50b020SAlexander Duyck /* duplicated to the one in bootmem.h */ 9*fb50b020SAlexander Duyck extern unsigned long max_pfn; 10*fb50b020SAlexander Duyck extern unsigned long phys_base; 11*fb50b020SAlexander Duyck 12*fb50b020SAlexander Duyck extern unsigned long __phys_addr(unsigned long); 13*fb50b020SAlexander Duyck 14*fb50b020SAlexander Duyck #define __phys_reloc_hide(x) (x) 15*fb50b020SAlexander Duyck 16*fb50b020SAlexander Duyck #ifdef CONFIG_FLATMEM 17*fb50b020SAlexander Duyck #define pfn_valid(pfn) ((pfn) < max_pfn) 18*fb50b020SAlexander Duyck #endif 19*fb50b020SAlexander Duyck 20*fb50b020SAlexander Duyck void clear_page(void *page); 21*fb50b020SAlexander Duyck void copy_page(void *to, void *from); 22*fb50b020SAlexander Duyck 23*fb50b020SAlexander Duyck #endif /* !__ASSEMBLY__ */ 24*fb50b020SAlexander Duyck 251965aae3SH. Peter Anvin #endif /* _ASM_X86_PAGE_64_H */ 26