]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Automatically lmb_reserve() initrd
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 28 Feb 2007 03:12:29 +0000 (14:12 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 8 Mar 2007 04:43:35 +0000 (15:43 +1100)
commit30437b3e743f33e9b68f813ca24e547aa9fcf7d7
tree6ff8799e8fbfd717f288e7365a5329a01505e9be
parenteb6de2863750e696201780283e4c9ada19b4728e
[POWERPC] Automatically lmb_reserve() initrd

At present, when an initrd is passed to the kernel used flat device
tree properties, the memory the initrd occupies must also be reserved
in the flat tree's reserve map, or the kernel may overwrite it.  That
makes life more complicated than it could be for the bootwrapper.

This patch makes the kernel automatically reserve the initrd's space.
That in turn requires parsing the initrd parameters earlier than they
are currently, in early_init_dt_scan_chosen() instead of
check_for_initrd().

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom.c
arch/powerpc/kernel/setup-common.c