microblaze: Fix initrd support
authorMichal Simek <michal.simek@xilinx.com>
Thu, 2 May 2013 13:53:51 +0000 (15:53 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 9 May 2013 07:04:31 +0000 (09:04 +0200)
Initrd/ramdisk support has been never validated.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/mm/init.c

index 4ec137d..b38ae3a 100644 (file)
@@ -404,10 +404,11 @@ asmlinkage void __init mmu_init(void)
 
 #if defined(CONFIG_BLK_DEV_INITRD)
        /* Remove the init RAM disk from the available memory. */
-/*     if (initrd_start) {
-               mem_pieces_remove(&phys_avail, __pa(initrd_start),
-                                 initrd_end - initrd_start, 1);
-       }*/
+       if (initrd_start) {
+               unsigned long size;
+               size = initrd_end - initrd_start;
+               memblock_reserve(virt_to_phys(initrd_start), size);
+       }
 #endif /* CONFIG_BLK_DEV_INITRD */
 
        /* Initialize the MMU hardware */