[brcm63xx] register GPIO-connected LEDs for known boards
[openwrt.git] / target / linux / rb532 / patches / 001-cmdline_hack.patch
1 --- a/arch/mips/kernel/head.S
2 +++ b/arch/mips/kernel/head.S
3 @@ -123,6 +123,11 @@
4
5 j kernel_entry
6 nop
7 +
8 +
9 +EXPORT(_image_cmdline)
10 + .ascii "CMDLINE:"
11 +
12 #ifndef CONFIG_NO_EXCEPT_FILL
13 /*
14 * Reserved space for exception handlers.
15 --- a/arch/mips/rb532/prom.c
16 +++ b/arch/mips/rb532/prom.c
17 @@ -67,6 +67,7 @@ static inline unsigned long tag2ul(char
18 return simple_strtoul(num, 0, 10);
19 }
20
21 +extern char _image_cmdline;
22 void __init prom_setup_cmdline(void)
23 {
24 char cmd_line[CL_SIZE];
25 @@ -109,6 +110,9 @@ void __init prom_setup_cmdline(void)
26 }
27 *(cp++) = ' ';
28
29 + strcpy(cp,(&_image_cmdline + 8));
30 + cp += strlen(&_image_cmdline);
31 +
32 i = strlen(arcs_cmdline);
33 if (i > 0) {
34 *(cp++) = ' ';
This page took 0.039796 seconds and 5 git commands to generate.