Skip to content

Commit

Permalink
microblaze: Fix initrd support
Browse files Browse the repository at this point in the history
Initrd/ramdisk support has been never validated.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
Michal Simek committed May 9, 2013
1 parent 4323cd4 commit 5eec2f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions arch/microblaze/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5eec2f0

Please sign in to comment.