001-cmdline_hack.patch 493 B

1234567891011121314151617181920
  1. --- a/arch/mips/rb532/prom.c
  2. +++ b/arch/mips/rb532/prom.c
  3. @@ -67,6 +67,7 @@ static inline unsigned long tag2ul(char
  4. return simple_strtoul(num, 0, 10);
  5. }
  6. +extern char __image_cmdline[];
  7. void __init prom_setup_cmdline(void)
  8. {
  9. static char cmd_line[COMMAND_LINE_SIZE] __initdata;
  10. @@ -108,6 +109,9 @@ void __init prom_setup_cmdline(void)
  11. }
  12. *(cp++) = ' ';
  13. + strcpy(cp,(__image_cmdline));
  14. + cp += strlen(__image_cmdline);
  15. +
  16. i = strlen(arcs_cmdline);
  17. if (i > 0) {
  18. *(cp++) = ' ';