Reserve initrd pages.

David Woodhouse dwmw2 at infradead.org
Sat Oct 16 09:15:50 EST 2004


On Fri, 2004-10-15 at 21:52 +0100, David Woodhouse wrote:
> +		reserve_bootmem(__pa(initrd_start), initrd_end-initrd_start);

That doesn't work if CONFIG_NUMA is set. This one does...

--- linux-2.6.8/arch/ppc64/kernel/setup.c~	2004-10-15 20:59:01.000000000 +0100
+++ linux-2.6.8/arch/ppc64/kernel/setup.c	2004-10-15 23:59:18.082932384 +0100
@@ -533,6 +533,8 @@
 	if (initrd_start)
 		printk("Found initrd at 0x%lx:0x%lx\n", initrd_start, initrd_end);
 
+	lmb_reserve(__pa(initrd_start), initrd_end-initrd_start);
+
 	DBG(" <- check_for_initrd()\n");
 #endif /* CONFIG_BLK_DEV_INITRD */
 }


-- 
dwmw2




More information about the Linuxppc64-dev mailing list