From: Alon Bar-Lev <alon.barlev@gmail.com>
To: Andi Kleen <ak@suse.de>
Cc: Matt Domsch <Matt_Domsch@dell.com>, Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, johninsd@san.rr.com,
davej@codemonkey.org.uk, Riley@williams.name,
trini@kernel.crashing.org, davem@davemloft.net, ecd@brainaid.de,
jj@sunsite.ms.mff.cuni.cz, anton@samba.org, wli@holomorphy.com,
lethal@linux-sh.org, rc@rc0.org.uk, spyro@f2s.com,
rth@twiddle.net, avr32@atmel.com, hskinnemoen@atmel.com,
starvik@axis.com, ralf@linux-mips.org, matthew@wil.cx,
grundler@parisc-linux.org, geert@linux-m68k.org,
zippel@linux-m68k.org, paulus@samba.org, schwidefsky@de.ibm.com,
heiko.carstens@de.ibm.com, uclinux-v850@lsi.nec.co.jp,
chris@zankel.net
Subject: [PATCH 15/26] Dynamic kernel command-line - parisc
Date: Mon, 4 Sep 2006 01:21:35 +0300 [thread overview]
Message-ID: <200609040121.36862.alon.barlev@gmail.com> (raw)
In-Reply-To: <200609040115.22856.alon.barlev@gmail.com>
1. Rename saved_command_line into boot_command_line.
2. Set command_line as __initdata.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
---
diff -urNp linux-2.6.18-rc5-mm1.org/arch/parisc/kernel/setup.c linux-2.6.18-rc5-mm1/arch/parisc/kernel/setup.c
--- linux-2.6.18-rc5-mm1.org/arch/parisc/kernel/setup.c 2006-09-03 18:55:13.000000000 +0300
+++ linux-2.6.18-rc5-mm1/arch/parisc/kernel/setup.c 2006-09-03 21:01:13.000000000 +0300
@@ -45,7 +45,7 @@
#include <asm/io.h>
#include <asm/setup.h>
-char command_line[COMMAND_LINE_SIZE] __read_mostly;
+char __initdata command_line[COMMAND_LINE_SIZE] __read_mostly;
/* Intended for ccio/sba/cpu statistics under /proc/bus/{runway|gsc} */
struct proc_dir_entry * proc_runway_root __read_mostly = NULL;
@@ -71,9 +71,9 @@ void __init setup_cmdline(char **cmdline
/* boot_args[0] is free-mem start, boot_args[1] is ptr to command line */
if (boot_args[0] < 64) {
/* called from hpux boot loader */
- saved_command_line[0] = '\0';
+ boot_command_line[0] = '\0';
} else {
- strcpy(saved_command_line, (char *)__va(boot_args[1]));
+ strcpy(boot_command_line, (char *)__va(boot_args[1]));
#ifdef CONFIG_BLK_DEV_INITRD
if (boot_args[2] != 0) /* did palo pass us a ramdisk? */
@@ -84,7 +84,7 @@ void __init setup_cmdline(char **cmdline
#endif
}
- strcpy(command_line, saved_command_line);
+ strcpy(command_line, boot_command_line);
*cmdline_p = command_line;
}
diff -urNp linux-2.6.18-rc5-mm1.org/arch/parisc/mm/init.c linux-2.6.18-rc5-mm1/arch/parisc/mm/init.c
--- linux-2.6.18-rc5-mm1.org/arch/parisc/mm/init.c 2006-09-03 18:56:50.000000000 +0300
+++ linux-2.6.18-rc5-mm1/arch/parisc/mm/init.c 2006-09-03 23:52:54.000000000 +0300
@@ -77,12 +77,12 @@ static void __init mem_limit_func(void)
{
char *cp, *end;
unsigned long limit;
- extern char saved_command_line[];
+ extern char __initdata boot_command_line[];
/* We need this before __setup() functions are called */
limit = MAX_MEM;
- for (cp = saved_command_line; *cp; ) {
+ for (cp = boot_command_line; *cp; ) {
if (memcmp(cp, "mem=", 4) == 0) {
cp += 4;
limit = memparse(cp, &end);
--
VGER BF report: H 0
next prev parent reply other threads:[~2006-09-03 22:30 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-03 22:15 [PATCH 00/26] Dynamic kernel command-line - Resend please ignore last Alon Bar-Lev
2006-09-03 22:16 ` [PATCH 01/26] Dynamic kernel command-line - common Alon Bar-Lev
2006-09-03 22:17 ` [PATCH 02/26] Dynamic kernel command-line - alpha Alon Bar-Lev
2006-09-03 22:17 ` [PATCH 03/26] Dynamic kernel command-line - arm Alon Bar-Lev
2006-09-03 22:17 ` [PATCH 04/26] Dynamic kernel command-line - arm26 Alon Bar-Lev
2006-09-03 22:18 ` [PATCH 05/26] Dynamic kernel command-line - avr32 Alon Bar-Lev
2006-09-07 7:31 ` Haavard Skinnemoen
2006-09-07 16:21 ` Alon Bar-Lev
2006-09-13 8:22 ` Haavard Skinnemoen
2006-09-13 8:30 ` Alon Bar-Lev
2006-09-13 9:23 ` [PATCH 05/26] Dynamic kernel command-line - avr32 (resend with signoff) Haavard Skinnemoen
2006-09-03 22:18 ` [PATCH 06/26] Dynamic kernel command-line - cris Alon Bar-Lev
2006-09-03 22:18 ` [PATCH 07/26] Dynamic kernel command-line - frv Alon Bar-Lev
2006-09-03 22:19 ` [PATCH 08/26] Dynamic kernel command-line - h8300 Alon Bar-Lev
2006-09-03 22:19 ` [PATCH 09/26] Dynamic kernel command-line - i386 Alon Bar-Lev
2006-09-03 22:19 ` [PATCH 10/26] Dynamic kernel command-line - ia64 Alon Bar-Lev
2006-09-03 22:20 ` [PATCH 11/26] Dynamic kernel command-line - m32r Alon Bar-Lev
2006-09-03 22:20 ` [PATCH 12/26] Dynamic kernel command-line - m68k Alon Bar-Lev
2006-09-03 22:21 ` [PATCH 13/26] Dynamic kernel command-line - m68knommu Alon Bar-Lev
2006-09-03 22:21 ` [PATCH 14/26] Dynamic kernel command-line - mips Alon Bar-Lev
2006-09-03 22:21 ` Alon Bar-Lev [this message]
2006-09-03 22:21 ` [PATCH 16/26] Dynamic kernel command-line - powerpc Alon Bar-Lev
2006-09-03 22:22 ` [PATCH 17/26] Dynamic kernel command-line - ppc Alon Bar-Lev
2006-09-03 22:22 ` [PATCH 18/26] Dynamic kernel command-line - s390 Alon Bar-Lev
2006-09-03 22:22 ` [PATCH 19/26] Dynamic kernel command-line - sh Alon Bar-Lev
2006-09-03 22:22 ` [PATCH 20/26] Dynamic kernel command-line - sh64 Alon Bar-Lev
2006-09-03 22:23 ` [PATCH 21/26] Dynamic kernel command-line - sparc Alon Bar-Lev
2006-09-03 22:23 ` [PATCH 22/26] Dynamic kernel command-line - sparc64 Alon Bar-Lev
2006-09-03 22:23 ` [PATCH 23/26] Dynamic kernel command-line - um Alon Bar-Lev
2006-09-05 17:24 ` Randy.Dunlap
2006-09-05 17:35 ` Alon Bar-Lev
2006-09-03 22:24 ` [PATCH 24/26] Dynamic kernel command-line - v850 Alon Bar-Lev
2006-09-03 22:24 ` [PATCH 25/26] Dynamic kernel command-line - x86_64 Alon Bar-Lev
2006-09-03 22:24 ` [PATCH 26/26] Dynamic kernel command-line - xtensa Alon Bar-Lev
-- strict thread matches above, loose matches on Subject: below --
2007-01-18 12:58 [patch 00/26] Dynamic kernel command-line Bernhard Walle
2007-01-18 12:59 ` [patch 15/26] Dynamic kernel command-line - parisc Bernhard Walle
2006-12-02 10:47 [PATCH 00/26] Dynamic kernel command-line Alon Bar-Lev
2006-12-02 10:53 ` [PATCH 15/26] Dynamic kernel command-line - parisc Alon Bar-Lev
2006-09-03 21:50 [PATCH 00/26] Dynamic kernel command-line Alon Bar-Lev
2006-09-03 21:59 ` [PATCH 15/26] Dynamic kernel command-line - parisc Alon Bar-Lev
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=200609040121.36862.alon.barlev@gmail.com \
--to=alon.barlev@gmail.com \
--cc=Matt_Domsch@dell.com \
--cc=Riley@williams.name \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=anton@samba.org \
--cc=avr32@atmel.com \
--cc=chris@zankel.net \
--cc=davej@codemonkey.org.uk \
--cc=davem@davemloft.net \
--cc=ecd@brainaid.de \
--cc=geert@linux-m68k.org \
--cc=grundler@parisc-linux.org \
--cc=heiko.carstens@de.ibm.com \
--cc=hskinnemoen@atmel.com \
--cc=jj@sunsite.ms.mff.cuni.cz \
--cc=johninsd@san.rr.com \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=paulus@samba.org \
--cc=ralf@linux-mips.org \
--cc=rc@rc0.org.uk \
--cc=rth@twiddle.net \
--cc=schwidefsky@de.ibm.com \
--cc=spyro@f2s.com \
--cc=starvik@axis.com \
--cc=trini@kernel.crashing.org \
--cc=uclinux-v850@lsi.nec.co.jp \
--cc=wli@holomorphy.com \
--cc=zippel@linux-m68k.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
Powered by JetHome