Skip to contentSkip to conversation

linux/i386: dma_addr_t must always be 64 bits wide

PATCH New Jan Beulich 1 participant 1 message Feb 3, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux/i386: dma_addr_t must always be 64 bits wide

Irrespective of CONFIG_HIGHMEM settings, DMA addresses must always be 64-bit wide.

include/asm-i386/types.h +1 -1
@@ -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;

Irrespective of CONFIG_HIGHMEM settings, DMA addresses must always be 64-bit wide.

include/asm-i386/types.h +1 -1
@@ -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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel