glibc: switch to downloading version 2.22 via tarball instead of git to improve mirro...
[openwrt/staging/yousong.git] / target / linux / octeon / patches-4.3 / 160-cmdline-hack.patch
index fd177968292e61ca1398fd894cc862ee3e571d0a..6e042ef714076f45087e04325041ba7d7fad035d 100644 (file)
@@ -1,9 +1,9 @@
 --- a/arch/mips/cavium-octeon/setup.c
 +++ b/arch/mips/cavium-octeon/setup.c
 @@ -611,6 +611,35 @@ void octeon_user_io_init(void)
-       write_c0_derraddr1(0);
+       write_c0_derraddr1(0);
  }
-
 +#ifdef CONFIG_IMAGE_CMDLINE_HACK
 +extern char __image_cmdline[];
 +
   * Early entry point for arch setup
   */
 @@ -842,6 +871,8 @@ void __init prom_init(void)
-               }
-       }
-
+               }
+       }
 +      octeon_use_image_cmdline();
 +
-       if (strstr(arcs_cmdline, "console=") == NULL) {
+       if (strstr(arcs_cmdline, "console=") == NULL) {
  #ifdef CONFIG_CAVIUM_OCTEON_2ND_KERNEL
-               strcat(arcs_cmdline, " console=ttyS0,115200");
+               strcat(arcs_cmdline, " console=ttyS0,115200");