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-ia64-devel

[Xen-ia64-devel] [PATCH 2 of 5] Port xen ioremap mods forward to 2.6.18-

To: Juan Quintela <quintela@xxxxxxxxxx>
Subject: [Xen-ia64-devel] [PATCH 2 of 5] Port xen ioremap mods forward to 2.6.18-rc2
From: Aron Griffis <aron@xxxxxx>
Date: Thu, 27 Jul 2006 00:10:56 -0400
Cc: Prarit Bhargava <prarit@xxxxxxxxxx>, fedora-xen@xxxxxxxxxx, Chris Wright <chrisw@xxxxxxxxxxxx>, Dave Jones <davej@xxxxxxxxxx>, fedora-ia64-list@xxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 26 Jul 2006 21:15:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1153973454@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
2 files changed, 4 insertions(+), 14 deletions(-)
arch/ia64/mm/ioremap.c |    2 ++
include/asm-ia64/io.h  |   16 ++--------------


# HG changeset patch
# User agriffis@xxxxxxxxxxxxxxx
# Node ID 575b49ce64a2098515c48a3f29a214f853025fcf
# Parent  489de0be169cc96a41105f8cb9046be740a9a706
Port xen ioremap mods forward to 2.6.18-rc2

Signed-off-by: Aron Griffis <aron@xxxxxx>

diff -r 489de0be169c -r 575b49ce64a2 arch/ia64/mm/ioremap.c
--- a/arch/ia64/mm/ioremap.c    Thu Jul 27 00:09:52 2006 -0400
+++ b/arch/ia64/mm/ioremap.c    Thu Jul 27 00:09:55 2006 -0400
@@ -16,7 +16,9 @@ static inline void __iomem *
 static inline void __iomem *
 __ioremap (unsigned long offset, unsigned long size)
 {
+#ifdef CONFIG_XEN
        offset = HYPERVISOR_ioremap(offset, size);
+#endif
        return (void __iomem *) (__IA64_UNCACHED_OFFSET | offset);
 }
 
diff -r 489de0be169c -r 575b49ce64a2 include/asm-ia64/io.h
--- a/include/asm-ia64/io.h     Thu Jul 27 00:09:52 2006 -0400
+++ b/include/asm-ia64/io.h     Thu Jul 27 00:09:55 2006 -0400
@@ -451,25 +451,13 @@ __writeq (unsigned long val, volatile vo
 # define outl_p                outl
 #endif
 
-/*
- * An "address" in IO memory space is not clearly either an integer or a 
pointer. We will
- * accept both, thus the casts.
- *
- * On ia-64, we access the physical I/O memory space through the uncached 
kernel region.
- */
-static inline void __iomem *
-ioremap (unsigned long offset, unsigned long size)
-{
-       offset = HYPERVISOR_ioremap(offset, size);
-       return (void __iomem *) (__IA64_UNCACHED_OFFSET | (offset));
-}
+extern void __iomem * ioremap(unsigned long offset, unsigned long size);
+extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long 
size);
 
 static inline void
 iounmap (volatile void __iomem *addr)
 {
 }
-
-#define ioremap_nocache(o,s)   ioremap(o,s)
 
 /* Use normal IO mappings for DMI */
 #define dmi_ioremap ioremap

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