Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

m68knommu: mark all RAM as ZONE_DMA

There is no reason not to put all RAM in ZONE_DMA for these simple
m68k varients (same as the standard MMU m68k code does). With this
in place the usual dma_alloc_coherent() work as expected.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>

+1 -5
+1 -5
arch/m68knommu/mm/init.c
··· 111 111 { 112 112 unsigned long zones_size[MAX_NR_ZONES] = {0, }; 113 113 114 - zones_size[ZONE_DMA] = 0 >> PAGE_SHIFT; 115 - zones_size[ZONE_NORMAL] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT; 116 - #ifdef CONFIG_HIGHMEM 117 - zones_size[ZONE_HIGHMEM] = 0; 118 - #endif 114 + zones_size[ZONE_DMA] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT; 119 115 free_area_init(zones_size); 120 116 } 121 117 }