]> git.baikalelectronics.ru Git - kernel.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)
commitd8ced6ae8ebb9af1863edd978b00e37687e26417
tree6ff8799e8fbfd717f288e7365a5329a01505e9be
parent5c670f10065a3b886ab4e9a8e1aad8f677d31c42
[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