memblock: Remove rmo_size, burry it in arch/powerpc where it belongs
[linux-3.10.git] / arch / powerpc / mm / fsl_booke_mmu.c
index e525f86..0be8fe2 100644 (file)
@@ -215,3 +215,12 @@ void __init adjust_total_lowmem(void)
 
        memblock_set_current_limit(memstart_addr + __max_low_memory);
 }
+
+void setup_initial_memory_limit(phys_addr_t first_memblock_base,
+                               phys_addr_t first_memblock_size)
+{
+       phys_addr_t limit = first_memblock_base + first_memblock_size;
+
+       /* 64M mapped initially according to head_fsl_booke.S */
+       memblock_set_current_limit(min_t(u64, limit, 0x04000000));
+}