diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-01-30 13:32:43 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:32:43 +0100 |
commit | 98fd5aee348f0420afd1c636790d50aaaec6ceec (patch) | |
tree | c2e0e421ce7cfb809b643a6934e19f82e2c1ceae /include/asm-x86/page_64.h | |
parent | 6724a1d2fc6b40d55f232b8dacc12a915878bdc7 (diff) |
x86: page.h: move pa and va related things
# HG changeset patch
# User Jeremy Fitzhardinge <jeremy@xensource.com>
# Date 1199319656 28800
# Node ID d617b72a0cc9d14bde2087d065c36d4ed3265761
# Parent 3bd7db6e85e66e7f3362874802df26a82fcb2d92
x86: page.h: move pa and va related things
Move and unify the virtual<->physical address space conversion
functions.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/page_64.h')
-rw-r--r-- | include/asm-x86/page_64.h | 13 |
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; #include <asm/bug.h> -extern unsigned long __phys_addr(unsigned long); - #endif /* __ASSEMBLY__ */ -#define __pa(x) __phys_addr((unsigned long)(x)) -#define __pa_symbol(x) __phys_addr((unsigned long)(x)) - -#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET)) -#define __boot_va(x) __va(x) -#define __boot_pa(x) __pa(x) - -#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT) -#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) -#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT) - #define __HAVE_ARCH_GATE_AREA 1 #define vmemmap ((struct page *)VMEMMAP_START) |