diff options
Diffstat (limited to 'arch/x86/include/asm/page.h')
| -rw-r--r-- | arch/x86/include/asm/page.h | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/include/asm/page.h b/arch/x86/include/asm/page.h index 8ca82839288..775873d3be5 100644 --- a/arch/x86/include/asm/page.h +++ b/arch/x86/include/asm/page.h @@ -17,6 +17,10 @@  struct page; +#include <linux/range.h> +extern struct range pfn_mapped[]; +extern int nr_pfn_mapped; +  static inline void clear_user_page(void *page, unsigned long vaddr,  				   struct page *pg)  { @@ -44,7 +48,8 @@ static inline void copy_user_page(void *to, void *from, unsigned long vaddr,   * case properly. Once all supported versions of gcc understand it, we can   * remove this Voodoo magic stuff. (i.e. once gcc3.x is deprecated)   */ -#define __pa_symbol(x)	__pa(__phys_reloc_hide((unsigned long)(x))) +#define __pa_symbol(x) \ +	__phys_addr_symbol(__phys_reloc_hide((unsigned long)(x)))  #define __va(x)			((void *)((unsigned long)(x)+PAGE_OFFSET)) @@ -66,6 +71,7 @@ extern bool __virt_addr_valid(unsigned long kaddr);  #include <asm-generic/getorder.h>  #define __HAVE_ARCH_GATE_AREA 1 +#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA  #endif	/* __KERNEL__ */  #endif /* _ASM_X86_PAGE_H */  | 
