[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] define virt_to_mfn and mfn_to_virt



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 942ecf21dc066cb6a591c3db86863374e34f4c0c
# Parent  360f9dc71f513c5e371c8c1b09cbb0f3c8e34d63
[IA64] define virt_to_mfn and mfn_to_virt

These are necessary to build w/ current xen-unstable

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---
 xen/include/asm-ia64/xenpage.h |    4 ++++
 1 files changed, 4 insertions(+)

diff -r 360f9dc71f51 -r 942ecf21dc06 xen/include/asm-ia64/xenpage.h
--- a/xen/include/asm-ia64/xenpage.h    Tue Jun 13 11:41:15 2006 +0100
+++ b/xen/include/asm-ia64/xenpage.h    Tue Jun 13 09:35:43 2006 -0600
@@ -27,6 +27,10 @@ extern int ia64_mfn_valid (unsigned long
 
 #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 {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.