Skip to contentSkip to conversation

Put memory in DMA zone not Normal zone in FRV arch

PATCH New David Howells 1 participant 1 message Dec 8, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Put memory in DMA zone not Normal zone in FRV arch

The attached patch makes the FR-V arch put all its memory in the DMA zone rather than the Normal zone since all the memory is available as a DMA target.

---
warthog>diffstat frv-memzone-2610rc2mm3-3.diff

 init.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/frv/mm/init.c +2 -2
diff -uNrp linux-2.6.10-rc2-mm3-mmcleanup/arch/frv/mm/init.c linux-2.6.10-rc2-mm3-shmem/arch/frv/mm/init.c
@@ -125,8 +125,8 @@ void __init paging_init(void)
 
 	/* distribute the allocatable pages across the various zones and pass them to the allocator
 	 */
-	zones_size[ZONE_DMA]     = 0 >> PAGE_SHIFT;
-	zones_size[ZONE_NORMAL]  = max_low_pfn - min_low_pfn;
+	zones_size[ZONE_DMA]     = max_low_pfn - min_low_pfn;
+	zones_size[ZONE_NORMAL]  = 0; 
 #ifdef CONFIG_HIGHMEM
 	zones_size[ZONE_HIGHMEM] = num_physpages - num_mappedpages;
 #endif