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

[Xen-devel] [PATCH] linux/i386: dma_addr_t must always be 64 bits wide

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux/i386: dma_addr_t must always be 64 bits wide
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Wed, 03 Feb 2010 16:30:12 +0000
Delivery-date: Wed, 03 Feb 2010 08:29:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Irrespective of CONFIG_HIGHMEM settings, DMA addresses must always be
64-bit wide.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- a/include/asm-i386/types.h
+++ b/include/asm-i386/types.h
@@ -50,7 +50,7 @@
 
 /* DMA addresses come in generic and 64-bit flavours.  */
 
-#ifdef CONFIG_HIGHMEM64G
+#if defined(CONFIG_XEN) || defined(CONFIG_HIGHMEM64G)
 typedef u64 dma_addr_t;
 #else
 typedef u32 dma_addr_t;



Attachment: xenlinux-i386-dma_addr_t-64bit.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux/i386: dma_addr_t must always be 64 bits wide, Jan Beulich <=