diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-05-02 15:53:51 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2013-05-09 09:04:31 +0200 |
commit | 5eec2f0228e40318e452d83a5e91052986437d3b (patch) | |
tree | 9ef6392594d31e6433e39768b3a3ffcf8174f3ae /arch/microblaze | |
parent | 4323cd48a13a3dfef0e3674e7c0165c9b1a37b55 (diff) | |
download | op-kernel-dev-5eec2f0228e40318e452d83a5e91052986437d3b.zip op-kernel-dev-5eec2f0228e40318e452d83a5e91052986437d3b.tar.gz |
microblaze: Fix initrd support
Initrd/ramdisk support has been never validated.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/mm/init.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index 4ec137d..b38ae3a 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 */ |