From: awilliam@xenbuild.aw Date: Tue, 13 Jun 2006 15:35:43 +0000 (-0600) Subject: [IA64] define virt_to_mfn and mfn_to_virt X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15972^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dcdd40d2e660607165db01de7c1d68351b3eeeb8;p=xen.git [IA64] define virt_to_mfn and mfn_to_virt These are necessary to build w/ current xen-unstable Signed-off-by: Alex Williamson --- 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 {