mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: trini@kernel.crashing.org
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org
Subject: [patch 17/22] __early_param for SH
Date: Wed, 24 Mar 2004 19:00:48 -0500	[thread overview]
Message-ID: <20040325000048.RGGE4381.fed1mtao07.cox.net@localhost.localdomain> (raw)


- 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 = .;

_

                 reply	other threads:[~2004-03-25  0:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040325000048.RGGE4381.fed1mtao07.cox.net@localhost.localdomain \
    --to=trini@kernel.crashing.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®