]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
xen/i386: dma_addr_t must always be 64 bits wide
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Feb 2010 08:54:27 +0000 (08:54 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Feb 2010 08:54:27 +0000 (08:54 +0000)
Irrespective of CONFIG_HIGHMEM settings, DMA addresses must always be
64-bit wide.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
include/asm-i386/types.h

index 4b4b295ccdb9b75deca70c45467571cd7fdf5c38..2b3212daaffd046264430e8a7d4122bac2c1db13 100644 (file)
@@ -50,7 +50,7 @@ typedef unsigned long long u64;
 
 /* 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;