[IA64] define virt_to_mfn and mfn_to_virt
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Tue, 13 Jun 2006 15:35:43 +0000 (09:35 -0600)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Tue, 13 Jun 2006 15:35:43 +0000 (09:35 -0600)
These are necessary to build w/ current xen-unstable

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
xen/include/asm-ia64/xenpage.h

index f1684306ed7657e76e94669097dd742eabb0ddcf..aef0dc1a03aecf538a9e570a9905df5c8a0b328d 100644 (file)
@@ -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 {