From dcdd40d2e660607165db01de7c1d68351b3eeeb8 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Tue, 13 Jun 2006 09:35:43 -0600 Subject: [PATCH] [IA64] define virt_to_mfn and mfn_to_virt These are necessary to build w/ current xen-unstable Signed-off-by: Alex Williamson --- xen/include/asm-ia64/xenpage.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/include/asm-ia64/xenpage.h b/xen/include/asm-ia64/xenpage.h index f1684306ed..aef0dc1a03 100644 --- a/xen/include/asm-ia64/xenpage.h +++ b/xen/include/asm-ia64/xenpage.h @@ -28,6 +28,10 @@ extern int ia64_mfn_valid (unsigned long pfn); #define page_to_virt(_page) maddr_to_virt(page_to_maddr(_page)) #define maddr_to_page(kaddr) mfn_to_page(((kaddr) >> PAGE_SHIFT)) +/* Convert between Xen-heap virtual addresses and machine frame numbers. */ +#define virt_to_mfn(va) (virt_to_maddr(va) >> PAGE_SHIFT) +#define mfn_to_virt(mfn) maddr_to_virt(mfn << PAGE_SHIFT) + #ifndef __ASSEMBLY__ typedef union xen_va { struct { -- 2.30.2