ia64/xen-unstable

changeset 10372:942ecf21dc06

[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@hp.com>
author awilliam@xenbuild.aw
date Tue Jun 13 09:35:43 2006 -0600 (2006-06-13)
parents 360f9dc71f51
children 912588576817
files xen/include/asm-ia64/xenpage.h
line diff
     1.1 --- a/xen/include/asm-ia64/xenpage.h	Tue Jun 13 11:41:15 2006 +0100
     1.2 +++ b/xen/include/asm-ia64/xenpage.h	Tue Jun 13 09:35:43 2006 -0600
     1.3 @@ -28,6 +28,10 @@ extern int ia64_mfn_valid (unsigned long
     1.4  #define page_to_virt(_page)	maddr_to_virt(page_to_maddr(_page))
     1.5  #define maddr_to_page(kaddr)	mfn_to_page(((kaddr) >> PAGE_SHIFT))
     1.6  
     1.7 +/* Convert between Xen-heap virtual addresses and machine frame numbers. */
     1.8 +#define virt_to_mfn(va)		(virt_to_maddr(va) >> PAGE_SHIFT)
     1.9 +#define mfn_to_virt(mfn)	maddr_to_virt(mfn << PAGE_SHIFT)
    1.10 +
    1.11  #ifndef __ASSEMBLY__
    1.12  typedef union xen_va {
    1.13  	struct {