summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-02 14:06:30 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-02 14:06:30 +0000
commit29400e70508754cc7a8a5aa24693351ca261d4a2 (patch)
tree04af271abd08f5425ed87dd74ff7d7688b8bc8dd /arch/mips
parent6491a19c3b2fd0af0f08a9ca825366d638926c47 (diff)
Fix ZONE_DMA nonsense for Indy.
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/mm/init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c
index bc7a36da1..b1fde5108 100644
--- a/arch/mips/mm/init.c
+++ b/arch/mips/mm/init.c
@@ -256,12 +256,16 @@ void __init paging_init(void)
max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT;
low = max_low_pfn;
+#if defined(CONFIG_PCI) || defined(CONFIG_ISA)
if (low < max_dma)
zones_size[ZONE_DMA] = low;
else {
zones_size[ZONE_DMA] = max_dma;
zones_size[ZONE_NORMAL] = low - max_dma;
}
+#else
+ zones_size[ZONE_DMA] = low;
+#endif
free_area_init(zones_size);
}