patch-1.3.50 linux/arch/ppc/kernel/setup.c

Next file: linux/arch/sparc/kernel/setup.c
Previous file: linux/arch/mips/kernel/setup.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.49/linux/arch/ppc/kernel/setup.c linux/arch/ppc/kernel/setup.c
@@ -134,6 +134,9 @@
 
 #define DEFAULT_ROOT_DEVICE 0x0200	/* fd0 */
 
+#define COMMAND_LINE_SIZE 512	/* Should match head.S */
+char saved_command_line[COMMAND_LINE_SIZE];
+
 void setup_arch(char **cmdline_p,
 	unsigned long * memory_start_p, unsigned long * memory_end_p)
 {
@@ -143,6 +146,7 @@
 
 	ROOT_DEV = DEFAULT_ROOT_DEVICE;
 	aux_device_present = 0xaa;
+	strcpy(saved_command_line, cmd_line);
 	*cmdline_p = cmd_line;
 	*memory_start_p = (unsigned long) &_end;
 	*memory_end_p = (unsigned long *)Hash;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this