aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/efi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/kernel/efi.c')
-rw-r--r--arch/ia64/kernel/efi.c5
1 files changed, 3 insertions, 2 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) {