From: trini@kernel.crashing.org
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org
Subject: [patch 21/22] __early_param for v850
Date: Wed, 24 Mar 2004 19:01:35 -0500 [thread overview]
Message-ID: <20040325000135.RGPI4381.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/v850/kernel/setup.c | 5 +----
linux-2.6-early_setup-trini/arch/v850/kernel/vmlinux.lds.S | 5 +++++
2 files changed, 6 insertions(+), 4 deletions(-)
diff -puN arch/v850/kernel/setup.c~v850 arch/v850/kernel/setup.c
--- linux-2.6-early_setup/arch/v850/kernel/setup.c~v850 2004-03-24 16:15:10.470829791 -0700
+++ linux-2.6-early_setup-trini/arch/v850/kernel/setup.c 2004-03-24 16:15:10.474828890 -0700
@@ -41,7 +41,6 @@ extern char _root_fs_image_end __attribu
char command_line[512];
-char saved_command_line[512];
/* Memory not used by the kernel. */
static unsigned long total_ram_pages;
@@ -61,10 +60,8 @@ void set_mem_root (void *addr, size_t le
void __init setup_arch (char **cmdline)
{
- /* Keep a copy of command line */
*cmdline = command_line;
- memcpy (saved_command_line, command_line, sizeof saved_command_line);
- saved_command_line[sizeof saved_command_line - 1] = '\0';
+ parse_early_options(cmdline_p);
console_verbose ();
diff -puN arch/v850/kernel/vmlinux.lds.S~v850 arch/v850/kernel/vmlinux.lds.S
--- linux-2.6-early_setup/arch/v850/kernel/vmlinux.lds.S~v850 2004-03-24 16:15:10.472829340 -0700
+++ linux-2.6-early_setup-trini/arch/v850/kernel/vmlinux.lds.S 2004-03-24 16:15:10.474828890 -0700
@@ -109,6 +109,11 @@
*(.init.setup) /* 2.5 convention */ \
*(.setup.init) /* 2.4 convention */ \
___setup_end = . ; \
+
+ __early_begin = .;
+ *(__early_param)
+ __early_end = .;
+
___start___param = . ; \
*(__param) \
___stop___param = . ; \
_
reply other threads:[~2004-03-25 0:24 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=20040325000135.RGPI4381.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®