aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/page_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/page_64.h')
-rw-r--r--include/asm-x86/page_64.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/asm-x86/page_64.h b/include/asm-x86/page_64.h
index f8a07bf54c3c..7094684270a6 100644
--- a/include/asm-x86/page_64.h
+++ b/include/asm-x86/page_64.h
@@ -16,21 +16,8 @@ extern unsigned long phys_base;
16 16
17#include <asm/bug.h> 17#include <asm/bug.h>
18 18
19extern unsigned long __phys_addr(unsigned long);
20
21#endif /* __ASSEMBLY__ */ 19#endif /* __ASSEMBLY__ */
22 20
23#define __pa(x) __phys_addr((unsigned long)(x))
24#define __pa_symbol(x) __phys_addr((unsigned long)(x))
25
26#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
27#define __boot_va(x) __va(x)
28#define __boot_pa(x) __pa(x)
29
30#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
31#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
32#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
33
34#define __HAVE_ARCH_GATE_AREA 1 21#define __HAVE_ARCH_GATE_AREA 1
35#define vmemmap ((struct page *)VMEMMAP_START) 22#define vmemmap ((struct page *)VMEMMAP_START)
36 23