Skip to content

Commit

Permalink
microblaze_mmu_v2: Update dma.h for MMU
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed May 26, 2009
1 parent 46fb9be commit dcffc1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/microblaze/include/asm/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit dcffc1b

Please sign in to comment.