From: David Gibson Date: Thu, 22 Mar 2007 06:02:21 +0000 (+1100) Subject: [POWERPC] Clean up zImage handling of the command line X-Git-Tag: v2.6.22-rc1~1109^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af82a8b00f98ca54e4c860eeb2b9ede6d8cadf4;p=pandora-kernel.git [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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed