]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Clean up zImage handling of the command line
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 22 Mar 2007 06:02:21 +0000 (17:02 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 12 Apr 2007 17:55:14 +0000 (03:55 +1000)
commit3af82a8b00f98ca54e4c860eeb2b9ede6d8cadf4
tree38b7c1a849817869bae6c38368e389b2cd860ace
parent27fbaa9702e548e74dffd21855769f6cedad42bd
[POWERPC] Clean up zImage handling of the command line

This cleans up how the zImage code manipulates the kernel
command line.  Notable improvements from the old handling:
- Command line manipulation is consolidated into a new
prep_cmdline() function, rather than being scattered across start()
and some helper functions
- Less stack space use: we use just a single global command
line buffer, which can be initialized by an external tool as before,
we no longer need another command line sized buffer on the stack.
- Easier to support platforms whose firmware passes a
commandline, but not a device tree.  Platform code can now point new
loader_info fields to the firmware's command line, rather than having
to do early manipulation of the /chosen bootargs property which may
then be rewritten again by the core.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/main.c
arch/powerpc/boot/ops.h