From: Michal Simek Date: Thu, 2 May 2013 13:53:51 +0000 (+0200) Subject: microblaze: Fix initrd support X-Git-Tag: firefly_0821_release~3680^2~501^2~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5eec2f0228e40318e452d83a5e91052986437d3b;p=firefly-linux-kernel-4.4.55.git microblaze: Fix initrd support Initrd/ramdisk support has been never validated. Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index 4ec137d13ad7..b38ae3acfeb4 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -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 */