ia64/xen-unstable

changeset 16362:568816a7cb0a

[IA64] Add paddr_to_pfn for upstream changes

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author Alex Williamson <alex.williamson@hp.com>
date Thu Nov 08 09:05:26 2007 -0700 (2007-11-08)
parents ee935d2b8a63
children 1dcb24e6c4e4
files xen/include/asm-ia64/xenpage.h
line diff
     1.1 --- a/xen/include/asm-ia64/xenpage.h	Thu Nov 08 09:37:06 2007 -0700
     1.2 +++ b/xen/include/asm-ia64/xenpage.h	Thu Nov 08 09:05:26 2007 -0700
     1.3 @@ -41,6 +41,10 @@ static inline unsigned long __virt_to_ma
     1.4  #define virt_to_mfn(va)		(virt_to_maddr(va) >> PAGE_SHIFT)
     1.5  #define mfn_to_virt(mfn)	maddr_to_virt(mfn << PAGE_SHIFT)
     1.6  
     1.7 +/* Convert between frame number and address formats.  */
     1.8 +#define pfn_to_paddr(pfn)	((paddr_t)(pfn) << PAGE_SHIFT)
     1.9 +#define paddr_to_pfn(pa)	((unsigned long)((pa) >> PAGE_SHIFT))
    1.10 +
    1.11  typedef union xen_va {
    1.12  	struct {
    1.13  		unsigned long off : 60;