aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2007-02-12 03:54:12 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:38 -0500
commita8d91b8477aa433ee0131b031d782411976e1726 (patch)
tree56e0f08c7da71cbc278721def52819fe33989f3d
parent4e498b66104af914ef04d6e7fbbbc13a4f7c936e (diff)
[PATCH] Dynamic kernel command-line: ia64
1. Rename saved_command_line into boot_command_line. 2. Set command_line as __initdata. [akpm@osdl.org: move some declarations to the right place] Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Cc: "Luck, Tony" <tony.luck@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--arch/ia64/kernel/efi.c5
-rw-r--r--arch/ia64/kernel/sal.c5
-rw-r--r--arch/ia64/kernel/setup.c4
3 files changed, 8 insertions, 6 deletions
diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
index 6c03928544c2..b12d6d13202a 100644
--- a/arch/ia64/kernel/efi.c
+++ b/arch/ia64/kernel/efi.c
@@ -405,6 +405,8 @@ efi_map_pal_code (void)
405 ia64_srlz_i(); 405 ia64_srlz_i();
406} 406}
407 407
408extern char __initdata boot_command_line[];
409
408void __init 410void __init
409efi_init (void) 411efi_init (void)
410{ 412{
@@ -413,11 +415,10 @@ efi_init (void)
413 efi_char16_t *c16; 415 efi_char16_t *c16;
414 u64 efi_desc_size; 416 u64 efi_desc_size;
415 char *cp, vendor[100] = "unknown"; 417 char *cp, vendor[100] = "unknown";
416 extern char saved_command_line[];
417 int i; 418 int i;
418 419
419 /* it's too early to be able to use the standard kernel command line support... */ 420 /* it's too early to be able to use the standard kernel command line support... */
420 for (cp = saved_command_line; *cp; ) { 421 for (cp = boot_command_line; *cp; ) {
421 if (memcmp(cp, "mem=", 4) == 0) { 422 if (memcmp(cp, "mem=", 4) == 0) {
422 mem_limit = memparse(cp + 4, &cp); 423 mem_limit = memparse(cp + 4, &cp);
423 } else if (memcmp(cp, "max_addr=", 9) == 0) { 424 } else if (memcmp(cp, "max_addr=", 9) == 0) {
diff --git a/arch/ia64/kernel/sal.c b/arch/ia64/kernel/sal.c
index 20bad78b5073..831d57f257db 100644
--- a/arch/ia64/kernel/sal.c
+++ b/arch/ia64/kernel/sal.c
@@ -190,13 +190,14 @@ sal_desc_ap_wakeup (void *p)
190 } 190 }
191} 191}
192 192
193extern char __initdata boot_command_line[];
194
193static void __init 195static void __init
194chk_nointroute_opt(void) 196chk_nointroute_opt(void)
195{ 197{
196 char *cp; 198 char *cp;
197 extern char saved_command_line[];
198 199
199 for (cp = saved_command_line; *cp; ) { 200 for (cp = boot_command_line; *cp; ) {
200 if (memcmp(cp, "nointroute", 10) == 0) { 201 if (memcmp(cp, "nointroute", 10) == 0) {
201 no_int_routing = 1; 202 no_int_routing = 1;
202 printk ("no_int_routing on\n"); 203 printk ("no_int_routing on\n");
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c
index 83c2629e1c4c..5fa09d141ab7 100644
--- a/arch/ia64/kernel/setup.c
+++ b/arch/ia64/kernel/setup.c
@@ -262,7 +262,7 @@ reserve_memory (void)
262 * appropriate after a kernel panic. 262 * appropriate after a kernel panic.
263 */ 263 */
264 { 264 {
265 char *from = strstr(saved_command_line, "crashkernel="); 265 char *from = strstr(boot_command_line, "crashkernel=");
266 unsigned long base, size; 266 unsigned long base, size;
267 if (from) { 267 if (from) {
268 size = memparse(from + 12, &from); 268 size = memparse(from + 12, &from);
@@ -463,7 +463,7 @@ setup_arch (char **cmdline_p)
463 ia64_patch_vtop((u64) __start___vtop_patchlist, (u64) __end___vtop_patchlist); 463 ia64_patch_vtop((u64) __start___vtop_patchlist, (u64) __end___vtop_patchlist);
464 464
465 *cmdline_p = __va(ia64_boot_param->command_line); 465 *cmdline_p = __va(ia64_boot_param->command_line);
466 strlcpy(saved_command_line, *cmdline_p, COMMAND_LINE_SIZE); 466 strlcpy(boot_command_line, *cmdline_p, COMMAND_LINE_SIZE);
467 467
468 efi_init(); 468 efi_init();
469 io_port_init(); 469 io_port_init();