Revision 74e91155 hw/ppc_chrp.c

b/hw/ppc_chrp.c
264 264
    dbdma_init(&dbdma_mem_index);
265 265

  
266 266
    macio_init(pci_bus, 0x0022, 0, pic_mem_index, dbdma_mem_index,
267
               cuda_mem_index, -1, 2, ide_mem_index);
267
               cuda_mem_index, NULL, 2, ide_mem_index);
268 268

  
269 269
    if (usb_enabled) {
270 270
        usb_ohci_init_pci(pci_bus, 3, -1);
......
274 274
        graphic_depth = 15;
275 275
#if 0 /* XXX: this is ugly but needed for now, or OHW won't boot */
276 276
    /* The NewWorld NVRAM is not located in the MacIO device */
277
    nvr = macio_nvram_init(&nvram_mem_index);
277
    nvr = macio_nvram_init(&nvram_mem_index, 0x2000);
278 278
    pmac_format_nvram_partition(nvr, 0x2000);
279
    cpu_register_physical_memory(0xFFF04000, 0x20000, nvram_mem_index);
279
    macio_nvram_map(nvr, 0xFFF04000);
280 280
    nvram.opaque = nvr;
281 281
    nvram.read_fn = &macio_nvram_read;
282 282
    nvram.write_fn = &macio_nvram_write;

Also available in: Unified diff