cb77a866e3870b8d9bf0635add9405ecf72d93c8
[openwrt.git] / target / linux / lantiq / patches-3.2 / 209-fritz_ram.patch
1 Index: linux-3.2.9/arch/mips/lantiq/setup.c
2 ===================================================================
3 --- linux-3.2.9.orig/arch/mips/lantiq/setup.c   2012-03-20 11:23:49.000000000 +0100
4 +++ linux-3.2.9/arch/mips/lantiq/setup.c        2012-03-20 11:25:54.119568502 +0100
5 @@ -40,6 +40,12 @@
6                         e += 8;
7                         if (strict_strtoul(e, 0, &memsize))
8                                 pr_warn("bad memsize specified\n");
9 +               } else if (!strcmp(e, "memsize")) {
10 +                       envp++;
11 +                       e = (char *)KSEG1ADDR(*envp);
12 +                       if (strict_strtoul(e, 0, &memsize))
13 +                               pr_warn("bad memsize specified\n");
14 +                       memsize /= 1024 * 1024;
15                 }
16                 if (!strncmp(e, "BRN-BOOT", 8)){
17                         pr_info("Found BRN-BOOT instead of u-boot\n");