diff options
Diffstat (limited to 'target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/prom.c')
-rw-r--r-- | target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/prom.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/prom.c b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/prom.c index 8eb12c78bf..e6a4a09d77 100644 --- a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/prom.c +++ b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/prom.c @@ -11,7 +11,7 @@ /* for voice cpu (MIPS24K) */ unsigned int *prom_cp1_base; -unsigned int prom_cp1_size; +unsigned int prom_cp1_size = 0; /* for Multithreading (APRP) on MIPS34K */ unsigned long physical_memsize; @@ -89,13 +89,6 @@ static void __init prom_init_cmdline(void) char *a = (char *)KSEG1ADDR(argv[i]); if (!argv[i]) continue; - /* for voice cpu on Twinpass/Danube */ - if (cpu_data[0].cputype == CPU_24K) - if (!strncmp(a, "cp1_size=", 9)) - { - prom_cp1_size = memparse(a + 9, &a); - continue; - } if (strlen(arcs_cmdline) + strlen(a + 1) >= sizeof(arcs_cmdline)) { early_printf("cmdline overflow, skipping: %s\n", a); @@ -125,6 +118,8 @@ static void __init prom_init_cmdline(void) /* only on Twinpass/Danube a second CPU is used for Voice */ if ((cpu_data[0].cputype == CPU_24K) && (prom_cp1_size)) { +#define CP1_SIZE 2 << 20 + prom_cp1_size = CP1_SIZE; memsize -= prom_cp1_size; prom_cp1_base = (unsigned int *)KSEG1ADDR(memsize); |