diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-03-22 02:02:21 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-12 13:55:14 -0400 |
commit | 3af82a8b00f98ca54e4c860eeb2b9ede6d8cadf4 (patch) | |
tree | 38b7c1a849817869bae6c38368e389b2cd860ace /arch/powerpc/boot/ops.h | |
parent | 27fbaa9702e548e74dffd21855769f6cedad42bd (diff) |
[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>
Diffstat (limited to 'arch/powerpc/boot/ops.h')
-rw-r--r-- | arch/powerpc/boot/ops.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h index cc191e8e147f..8008d612402e 100644 --- a/arch/powerpc/boot/ops.h +++ b/arch/powerpc/boot/ops.h | |||
@@ -70,6 +70,8 @@ struct serial_console_data { | |||
70 | struct loader_info { | 70 | struct loader_info { |
71 | void *promptr; | 71 | void *promptr; |
72 | unsigned long initrd_addr, initrd_size; | 72 | unsigned long initrd_addr, initrd_size; |
73 | char *cmdline; | ||
74 | int cmdline_len; | ||
73 | }; | 75 | }; |
74 | extern struct loader_info loader_info; | 76 | extern struct loader_info loader_info; |
75 | 77 | ||