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
7 if (strict_strtoul(e, 0, &memsize))
8 pr_warn("bad memsize specified\n");
9 + } else if (!strcmp(e, "memsize")) {
11 + e = (char *)KSEG1ADDR(*envp);
12 + if (strict_strtoul(e, 0, &memsize))
13 + pr_warn("bad memsize specified\n");
14 + memsize /= 1024 * 1024;
16 if (!strncmp(e, "BRN-BOOT", 8)){
17 pr_info("Found BRN-BOOT instead of u-boot\n");