From b0ac07eb81e5476a57167bb5ffa1b3663874c045 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Tue, 26 May 2009 16:30:29 +0200 Subject: [PATCH] --- yaml --- r: 148640 b: refs/heads/master c: dcffc1b29115cc26686b8ae62b587e63f0e139f0 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/microblaze/include/asm/dma.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a66e691c997d..99dae8a8ae25 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 46fb9be93b15bd8315622ad2f85f9516c064a785 +refs/heads/master: dcffc1b29115cc26686b8ae62b587e63f0e139f0 diff --git a/trunk/arch/microblaze/include/asm/dma.h b/trunk/arch/microblaze/include/asm/dma.h index 0967fa04fc5e..08c073badf19 100644 --- a/trunk/arch/microblaze/include/asm/dma.h +++ b/trunk/arch/microblaze/include/asm/dma.h @@ -9,8 +9,13 @@ #ifndef _ASM_MICROBLAZE_DMA_H #define _ASM_MICROBLAZE_DMA_H +#ifndef CONFIG_MMU /* we don't have dma address limit. define it as zero to be * unlimited. */ #define MAX_DMA_ADDRESS (0) +#else +/* Virtual address corresponding to last available physical memory address. */ +#define MAX_DMA_ADDRESS (CONFIG_KERNEL_START + memory_size - 1) +#endif #endif /* _ASM_MICROBLAZE_DMA_H */