Commit d33fd9d14b97731721e70bbb500ebc33c9e3a6ef
1 parent
21aeb343
ETRAX: Correct passing of kernel command line.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Showing
2 changed files
with
4 additions
and
4 deletions
hw/axis_dev88.c
| ... | ... | @@ -350,10 +350,10 @@ void axisdev88_init (ram_addr_t ram_size, |
| 350 | 350 | fprintf(stderr, "Too long CRIS kernel cmdline (max 256)\n"); |
| 351 | 351 | exit(1); |
| 352 | 352 | } |
| 353 | - pstrcpy_targphys(high, 256, kernel_cmdline); | |
| 354 | 353 | /* Let the kernel know we are modifying the cmdline. */ |
| 355 | 354 | env->regs[10] = 0x87109563; |
| 356 | - env->regs[11] = high; | |
| 355 | + env->regs[11] = 0x40000000; | |
| 356 | + pstrcpy_targphys(env->regs[11], 256, kernel_cmdline); | |
| 357 | 357 | } |
| 358 | 358 | } |
| 359 | 359 | env->pc = bootstrap_pc; | ... | ... |
hw/etraxfs.c
| ... | ... | @@ -141,10 +141,10 @@ void bareetraxfs_init (ram_addr_t ram_size, |
| 141 | 141 | fprintf(stderr, "Too long CRIS kernel cmdline (max 256)\n"); |
| 142 | 142 | exit(1); |
| 143 | 143 | } |
| 144 | - pstrcpy_targphys(high, 256, kernel_cmdline); | |
| 145 | 144 | /* Let the kernel know we are modifying the cmdline. */ |
| 146 | 145 | env->regs[10] = 0x87109563; |
| 147 | - env->regs[11] = high; | |
| 146 | + env->regs[11] = 0x40000000; | |
| 147 | + pstrcpy_targphys(env->regs[11], 256, kernel_cmdline); | |
| 148 | 148 | } |
| 149 | 149 | } |
| 150 | 150 | env->pc = bootstrap_pc; | ... | ... |