File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545#include <asm/io.h>
4646#include <asm/setup.h>
4747
48- char command_line [COMMAND_LINE_SIZE ] __read_mostly ;
48+ char __initdata command_line [COMMAND_LINE_SIZE ] __read_mostly ;
4949
5050/* Intended for ccio/sba/cpu statistics under /proc/bus/{runway|gsc} */
5151struct proc_dir_entry * proc_runway_root __read_mostly = NULL ;
@@ -71,9 +71,9 @@ void __init setup_cmdline(char **cmdline_p)
7171 /* boot_args[0] is free-mem start, boot_args[1] is ptr to command line */
7272 if (boot_args [0 ] < 64 ) {
7373 /* called from hpux boot loader */
74- saved_command_line [0 ] = '\0' ;
74+ boot_command_line [0 ] = '\0' ;
7575 } else {
76- strcpy (saved_command_line , (char * )__va (boot_args [1 ]));
76+ strcpy (boot_command_line , (char * )__va (boot_args [1 ]));
7777
7878#ifdef CONFIG_BLK_DEV_INITRD
7979 if (boot_args [2 ] != 0 ) /* did palo pass us a ramdisk? */
@@ -84,7 +84,7 @@ void __init setup_cmdline(char **cmdline_p)
8484#endif
8585 }
8686
87- strcpy (command_line , saved_command_line );
87+ strcpy (command_line , boot_command_line );
8888 * cmdline_p = command_line ;
8989}
9090
Original file line number Diff line number Diff line change @@ -77,12 +77,12 @@ static void __init mem_limit_func(void)
7777{
7878 char * cp , * end ;
7979 unsigned long limit ;
80- extern char saved_command_line [];
80+ extern char __initdata boot_command_line [];
8181
8282 /* We need this before __setup() functions are called */
8383
8484 limit = MAX_MEM ;
85- for (cp = saved_command_line ; * cp ; ) {
85+ for (cp = boot_command_line ; * cp ; ) {
8686 if (memcmp (cp , "mem=" , 4 ) == 0 ) {
8787 cp += 4 ;
8888 limit = memparse (cp , & end );
You can’t perform that action at this time.
0 commit comments