aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/init_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/mm/init_32.c')
-rw-r--r--arch/powerpc/mm/init_32.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c
index 161cefde5c15..6157be2a7049 100644
--- a/arch/powerpc/mm/init_32.c
+++ b/arch/powerpc/mm/init_32.c
@@ -65,6 +65,13 @@ phys_addr_t memstart_addr = (phys_addr_t)~0ull;
65EXPORT_SYMBOL(memstart_addr); 65EXPORT_SYMBOL(memstart_addr);
66phys_addr_t kernstart_addr; 66phys_addr_t kernstart_addr;
67EXPORT_SYMBOL(kernstart_addr); 67EXPORT_SYMBOL(kernstart_addr);
68
69#ifdef CONFIG_RELOCATABLE_PPC32
70/* Used in __va()/__pa() */
71long long virt_phys_offset;
72EXPORT_SYMBOL(virt_phys_offset);
73#endif
74
68phys_addr_t lowmem_end_addr; 75phys_addr_t lowmem_end_addr;
69 76
70int boot_mapsize; 77int boot_mapsize;
@@ -134,8 +141,7 @@ void __init MMU_init(void)
134 141
135 if (memblock.memory.cnt > 1) { 142 if (memblock.memory.cnt > 1) {
136#ifndef CONFIG_WII 143#ifndef CONFIG_WII
137 memblock.memory.cnt = 1; 144 memblock_enforce_memory_limit(memblock.memory.regions[0].size);
138 memblock_analyze();
139 printk(KERN_WARNING "Only using first contiguous memory region"); 145 printk(KERN_WARNING "Only using first contiguous memory region");
140#else 146#else
141 wii_memory_fixups(); 147 wii_memory_fixups();
@@ -158,7 +164,6 @@ void __init MMU_init(void)
158#ifndef CONFIG_HIGHMEM 164#ifndef CONFIG_HIGHMEM
159 total_memory = total_lowmem; 165 total_memory = total_lowmem;
160 memblock_enforce_memory_limit(total_lowmem); 166 memblock_enforce_memory_limit(total_lowmem);
161 memblock_analyze();
162#endif /* CONFIG_HIGHMEM */ 167#endif /* CONFIG_HIGHMEM */
163 } 168 }
164 169