Go to the documentation of this file. 1 #ifndef _ASM_X86_PAGE_H
2 #define _ASM_X86_PAGE_H
4 #include <linux/types.h>
11 #include <asm/page_64.h>
13 #include <asm/page_32.h>
32 #define __alloc_zeroed_user_highpage(movableflags, vma, vaddr) \
33 alloc_page_vma(GFP_HIGHUSER | __GFP_ZERO | movableflags, vma, vaddr)
34 #define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE
36 #define __pa(x) __phys_addr((unsigned long)(x))
37 #define __pa_nodebug(x) __phys_addr_nodebug((unsigned long)(x))
47 #define __pa_symbol(x) __pa(__phys_reloc_hide((unsigned long)(x)))
49 #define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
51 #define __boot_va(x) __va(x)
52 #define __boot_pa(x) __pa(x)
58 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
59 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
61 #define virt_addr_valid(kaddr) __virt_addr_valid((unsigned long) (kaddr))
68 #define __HAVE_ARCH_GATE_AREA 1