[patch 17/22] __early_param for SH

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/sh/kernel/setup.c | 6 +-----
linux-2.6-early_setup-trini/arch/sh/kernel/vmlinux.lds.S | 3 +++
2 files changed, 4 insertions(+), 5 deletions(-)

diff -puN arch/sh/kernel/setup.c~sh arch/sh/kernel/setup.c
--- linux-2.6-early_setup/arch/sh/kernel/setup.c~sh 2004-03-24 16:15:09.280097962 -0700
+++ linux-2.6-early_setup-trini/arch/sh/kernel/setup.c 2004-03-24 16:15:09.285096836 -0700
@@ -92,7 +92,6 @@ static struct sh_machine_vector* __init
#define RAMDISK_LOAD_FLAG 0x4000

static char command_line[COMMAND_LINE_SIZE] = { 0, };
- char saved_command_line[COMMAND_LINE_SIZE];

struct resource standard_io_resources[] = {
{ "dma1", 0x00, 0x1f },
@@ -252,10 +251,6 @@ static inline void parse_cmdline (char *
char c = ' ', *to = command_line, *from = COMMAND_LINE;
int len = 0;

- /* Save unparsed command line copy for /proc/cmdline */
- memcpy(saved_command_line, COMMAND_LINE, COMMAND_LINE_SIZE);
- saved_command_line[COMMAND_LINE_SIZE-1] = '\0';
-
memory_start = (unsigned long)PAGE_OFFSET+__MEMORY_START;
memory_end = memory_start + __MEMORY_SIZE;

@@ -411,6 +406,7 @@ void __init setup_arch(char **cmdline_p)
data_resource.end = virt_to_bus(_edata)-1;

sh_mv_setup(cmdline_p);
+ parse_early_options(cmdline_p);

#define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
#define PFN_DOWN(x) ((x) >> PAGE_SHIFT)
diff -puN arch/sh/kernel/vmlinux.lds.S~sh arch/sh/kernel/vmlinux.lds.S
--- linux-2.6-early_setup/arch/sh/kernel/vmlinux.lds.S~sh 2004-03-24 16:15:09.282097512 -0700
+++ linux-2.6-early_setup-trini/arch/sh/kernel/vmlinux.lds.S 2004-03-24 16:15:09.285096836 -0700
@@ -66,6 +66,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/