diff options
Diffstat (limited to 'arch/mips/qemu/q-firmware.c')
-rw-r--r-- | arch/mips/qemu/q-firmware.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/qemu/q-firmware.c b/arch/mips/qemu/q-firmware.c index fb2a8673a6bf..c2239b417587 100644 --- a/arch/mips/qemu/q-firmware.c +++ b/arch/mips/qemu/q-firmware.c | |||
@@ -10,7 +10,7 @@ void __init prom_init(void) | |||
10 | cmdline = (int *) (CKSEG0 + (0x10 << 20) - 260); | 10 | cmdline = (int *) (CKSEG0 + (0x10 << 20) - 260); |
11 | if (*cmdline == 0x12345678) { | 11 | if (*cmdline == 0x12345678) { |
12 | if (*(char *)(cmdline + 1)) | 12 | if (*(char *)(cmdline + 1)) |
13 | strcpy (arcs_cmdline, (char *)(cmdline + 1)); | 13 | strcpy(arcs_cmdline, (char *)(cmdline + 1)); |
14 | add_memory_region(0x0<<20, cmdline[-1], BOOT_MEM_RAM); | 14 | add_memory_region(0x0<<20, cmdline[-1], BOOT_MEM_RAM); |
15 | } else { | 15 | } else { |
16 | add_memory_region(0x0<<20, 0x10<<20, BOOT_MEM_RAM); | 16 | add_memory_region(0x0<<20, 0x10<<20, BOOT_MEM_RAM); |