From: Tom Rini - Remove saved_command_line (and saving of the command line). - Call parse_early_options --- 25-akpm/arch/sparc64/kernel/setup.c | 6 +++--- 25-akpm/arch/sparc64/kernel/vmlinux.lds.S | 3 +++ 25-akpm/include/asm-sparc64/setup.h | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff -puN arch/sparc64/kernel/setup.c~early-param-sparc64 arch/sparc64/kernel/setup.c --- 25/arch/sparc64/kernel/setup.c~early-param-sparc64 2004-04-01 02:06:20.140317608 -0800 +++ 25-akpm/arch/sparc64/kernel/setup.c 2004-04-01 02:06:20.146316696 -0800 @@ -47,6 +47,7 @@ #include #include #include +#include #ifdef CONFIG_IP_PNP #include @@ -451,8 +452,7 @@ extern unsigned short ram_flags; extern int root_mountflags; -char saved_command_line[256]; -char reboot_command[256]; +char reboot_command[COMMAND_LINE_SIZE]; static struct pt_regs fake_swapper_regs = { { 0, }, 0, 0, 0, 0 }; @@ -476,7 +476,7 @@ void __init setup_arch(char **cmdline_p) /* Initialize PROM console and command line. */ *cmdline_p = prom_getbootargs(); - strcpy(saved_command_line, *cmdline_p); + parse_early_options(cmdline_p); printk("ARCH: SUN4U\n"); diff -puN arch/sparc64/kernel/vmlinux.lds.S~early-param-sparc64 arch/sparc64/kernel/vmlinux.lds.S --- 25/arch/sparc64/kernel/vmlinux.lds.S~early-param-sparc64 2004-04-01 02:06:20.141317456 -0800 +++ 25-akpm/arch/sparc64/kernel/vmlinux.lds.S 2004-04-01 02:06:20.147316544 -0800 @@ -52,6 +52,9 @@ SECTIONS __setup_start = .; .init.setup : { *(.init.setup) } __setup_end = .; + __early_begin = .; + __early_param : { *(__early_param) } + __early_end = .; __start___param = .; __param : { *(__param) } __stop___param = .; diff -puN include/asm-sparc64/setup.h~early-param-sparc64 include/asm-sparc64/setup.h --- 25/include/asm-sparc64/setup.h~early-param-sparc64 2004-04-01 02:06:20.143317152 -0800 +++ 25-akpm/include/asm-sparc64/setup.h 2004-04-01 02:06:20.147316544 -0800 @@ -5,5 +5,6 @@ #ifndef _SPARC64_SETUP_H #define _SPARC64_SETUP_H +#define COMMAND_LINE_SIZE 256 #endif /* _SPARC64_SETUP_H */ _