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 20/22] __early_param for UM
Date: Wed, 24 Mar 2004 19:01:24 -0500	[thread overview]
Message-ID: <20040325000124.FKSL2430.fed1mtao02.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/um/kernel/um_arch.c    |    1 +
 linux-2.6-early_setup-trini/arch/um/kernel/user_util.c  |    1 -
 linux-2.6-early_setup-trini/include/asm-um/common.lds.S |    4 ++++
 3 files changed, 5 insertions(+), 1 deletion(-)

diff -puN arch/um/kernel/um_arch.c~um arch/um/kernel/um_arch.c
--- linux-2.6-early_setup/arch/um/kernel/um_arch.c~um	2004-03-24 16:15:10.165898466 -0700
+++ linux-2.6-early_setup-trini/arch/um/kernel/um_arch.c	2004-03-24 16:15:10.171897115 -0700
@@ -395,6 +395,7 @@ void __init setup_arch(char **cmdline_p)
 	paging_init();
  	strcpy(command_line, saved_command_line);
  	*cmdline_p = command_line;
+	parse_early_options(cmdline_p);
 	setup_hostinfo();
 }
 
diff -puN arch/um/kernel/user_util.c~um arch/um/kernel/user_util.c
--- linux-2.6-early_setup/arch/um/kernel/user_util.c~um	2004-03-24 16:15:10.167898016 -0700
+++ linux-2.6-early_setup-trini/arch/um/kernel/user_util.c	2004-03-24 16:15:10.172896890 -0700
@@ -34,7 +34,6 @@
 #define COMMAND_LINE_SIZE _POSIX_ARG_MAX
 
 /* Changed in linux_main and setup_arch, which run before SMP is started */
-char saved_command_line[COMMAND_LINE_SIZE] = { 0 };
 char command_line[COMMAND_LINE_SIZE] = { 0 };
 
 void add_arg(char *cmd_line, char *arg)
diff -puN include/asm-um/common.lds.S~um include/asm-um/common.lds.S
--- linux-2.6-early_setup/include/asm-um/common.lds.S~um	2004-03-24 16:15:10.169897565 -0700
+++ linux-2.6-early_setup-trini/include/asm-um/common.lds.S	2004-03-24 16:15:10.172896890 -0700
@@ -46,6 +46,10 @@
   .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:38 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=20040325000124.FKSL2430.fed1mtao02.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®