Revision b55266b5 hw/ppc.c

b/hw/ppc.c
1305 1305
}
1306 1306

  
1307 1307
void NVRAM_set_string (nvram_t *nvram, uint32_t addr,
1308
                       const unsigned char *str, uint32_t max)
1308
                       const char *str, uint32_t max)
1309 1309
{
1310 1310
    int i;
1311 1311

  
......
1366 1366
#define CMDLINE_ADDR 0x017ff000
1367 1367

  
1368 1368
int PPC_NVRAM_set_params (nvram_t *nvram, uint16_t NVRAM_size,
1369
                          const unsigned char *arch,
1369
                          const char *arch,
1370 1370
                          uint32_t RAM_size, int boot_device,
1371 1371
                          uint32_t kernel_image, uint32_t kernel_size,
1372 1372
                          const char *cmdline,
......
1387 1387
    NVRAM_set_lword(nvram,  0x3C, kernel_size);
1388 1388
    if (cmdline) {
1389 1389
        /* XXX: put the cmdline in NVRAM too ? */
1390
        strcpy(phys_ram_base + CMDLINE_ADDR, cmdline);
1390
        strcpy((char *)(phys_ram_base + CMDLINE_ADDR), cmdline);
1391 1391
        NVRAM_set_lword(nvram,  0x40, CMDLINE_ADDR);
1392 1392
        NVRAM_set_lword(nvram,  0x44, strlen(cmdline));
1393 1393
    } else {

Also available in: Unified diff