WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [IA64] Add paddr_to_pfn for upstream chan

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Add paddr_to_pfn for upstream changes
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Nov 2007 04:21:23 -0800
Delivery-date: Fri, 09 Nov 2007 05:28:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Add paddr_to_pfn for upstream changes, Xen patchbot-unstable <=