add a fix for the block2mtd init
[openwrt-10.03/.git] / target / linux / rb532-2.6 / patches / 230-dma_limit.patch
1 diff -urN linux.old/arch/mips/mm/init.c linux.dev/arch/mips/mm/init.c
2 --- linux.old/arch/mips/mm/init.c       2006-06-08 20:21:20.000000000 +0200
3 +++ linux.dev/arch/mips/mm/init.c       2006-06-08 20:19:40.000000000 +0200
4 @@ -149,7 +149,7 @@
5         kmap_init();
6  #endif
7  
8 -       max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT;
9 +       max_dma = virt_to_phys((char *) (256 * 1024 * 1024)) >> PAGE_SHIFT;
10         low = max_low_pfn;
11         high = highend_pfn;
12  
13