powerpc: Fix up dma_alloc_coherent() on platforms without cache coherency.
[deliverable/linux.git] / arch / powerpc / include / asm / pgtable-ppc32.h
index 28fe9d4bae352ff19a44e78f7344edea44270632..c9ff9d75990eb94eaf55944482dff6b5301d3afe 100644 (file)
@@ -71,7 +71,11 @@ extern int icache_44x_need_flush;
  * until mem_init() at which point this becomes the top of the vmalloc
  * and ioremap space
  */
+#ifdef CONFIG_NOT_COHERENT_CACHE
+#define IOREMAP_TOP    ((KVIRT_TOP - CONFIG_CONSISTENT_SIZE) & PAGE_MASK)
+#else
 #define IOREMAP_TOP    KVIRT_TOP
+#endif
 
 /*
  * Just any arbitrary offset to the start of the vmalloc VM area: the
This page took 0.024195 seconds and 5 git commands to generate.