[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] Add paddr_to_pfn for upstream changes
# HG changeset patch # User Alex Williamson <alex.williamson@xxxxxx> # Date 1194537926 25200 # Node ID 568816a7cb0a0fc9e990af33083f6b56ac981981 # Parent ee935d2b8a632bad27fc1682daf9cda503e08277 [IA64] Add paddr_to_pfn for upstream changes Signed-off-by: Alex Williamson <alex.williamson@xxxxxx> --- xen/include/asm-ia64/xenpage.h | 4 ++++ 1 files changed, 4 insertions(+) diff -r ee935d2b8a63 -r 568816a7cb0a xen/include/asm-ia64/xenpage.h --- a/xen/include/asm-ia64/xenpage.h Thu Nov 08 09:37:06 2007 -0700 +++ b/xen/include/asm-ia64/xenpage.h Thu Nov 08 09:05:26 2007 -0700 @@ -40,6 +40,10 @@ static inline unsigned long __virt_to_ma /* 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) + +/* Convert between frame number and address formats. */ +#define pfn_to_paddr(pfn) ((paddr_t)(pfn) << PAGE_SHIFT) +#define paddr_to_pfn(pa) ((unsigned long)((pa) >> PAGE_SHIFT)) typedef union xen_va { struct { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |