[patch 18/22] __early_param for sparc

From: trini
Date: Wed Mar 24 2004 - 19:24:56 EST



- Remove saved_command_line (and saving of the command line).
- Call parse_early_options


---

linux-2.6-early_setup-trini/arch/sparc/kernel/setup.c | 3 +--
linux-2.6-early_setup-trini/arch/sparc/kernel/vmlinux.lds.S | 3 +++
2 files changed, 4 insertions(+), 2 deletions(-)

diff -puN arch/sparc/kernel/setup.c~sparc arch/sparc/kernel/setup.c
--- linux-2.6-early_setup/arch/sparc/kernel/setup.c~sparc 2004-03-24 16:15:09.571032439 -0700
+++ linux-2.6-early_setup-trini/arch/sparc/kernel/setup.c 2004-03-24 16:15:09.577031088 -0700
@@ -244,7 +244,6 @@ extern unsigned short ram_flags;

extern int root_mountflags;

-char saved_command_line[256];
char reboot_command[256];
enum sparc_cpu sparc_cpu_model;

@@ -263,7 +262,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);

/* Set sparc_cpu_model */
sparc_cpu_model = sun_unknown;
diff -puN arch/sparc/kernel/vmlinux.lds.S~sparc arch/sparc/kernel/vmlinux.lds.S
--- linux-2.6-early_setup/arch/sparc/kernel/vmlinux.lds.S~sparc 2004-03-24 16:15:09.573031989 -0700
+++ linux-2.6-early_setup-trini/arch/sparc/kernel/vmlinux.lds.S 2004-03-24 16:15:09.577031088 -0700
@@ -45,6 +45,9 @@ SECTIONS
__setup_start = .;
.init.setup : { *(.init.setup) }
__setup_end = .;
+ __early_begin = .;
+ __early_param : { *(__early_param) }
+ __early_end = .;
__start___param = .;
__param : { *(__param) }
__stop___param = .;

_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/