1 diff -ur linux.old/arch/mips/kernel/head.S linux.dev/arch/mips/kernel/head.S
2 --- linux.old/arch/mips/kernel/head.S 2006-12-06 17:30:27.000000000 +0100
3 +++ linux.dev/arch/mips/kernel/head.S 2006-12-06 18:34:43.000000000 +0100
15 * Reserved space for exception handlers.
16 * Necessary for machines which link their kernels at KSEG0.
17 + * Use as temporary storage for the kernel command line, so that it
18 + * can be updated easily without having to relink the kernel.
22 +EXPORT(_image_cmdline)
26 EXPORT(stext) # used for profiling
28 diff -ur linux.old/arch/mips/adm5120/prom.c linux.dev/arch/mips/adm5120/prom.c
29 --- linux.old/arch/mips/adm5120/prom.c 2006-12-06 17:30:27.000000000 +0100
30 +++ linux.dev/arch/mips/adm5120/prom.c 2006-12-06 17:41:40.000000000 +0100
35 +extern char _image_cmdline;
37 * initialize the prom module.
40 mips_machtype = adm5120_board.mach_type;
42 /* init command line, register a default kernel command line */
43 - strcpy(&(arcs_cmdline[0]), CONFIG_CMDLINE);
44 + char *cmd = &_image_cmdline + 8;
45 + if( strlen(cmd) > 0) strcpy( &(arcs_cmdline[0]), cmd);
46 + else strcpy(&(arcs_cmdline[0]), CONFIG_CMDLINE);