Revision 91d848eb hw/ppc_chrp.c

b/hw/ppc_chrp.c
36 36
static int cuda_mem_index;
37 37
static int ide0_mem_index;
38 38
static int ide1_mem_index;
39
static int openpic_mem_index;
39 40

  
40 41
/* DBDMA: currently no op - should suffice right now */
41 42

  
......
87 88
    cpu_register_physical_memory(addr + 0x16000, 0x2000, cuda_mem_index);
88 89
    cpu_register_physical_memory(addr + 0x1f000, 0x1000, ide0_mem_index);
89 90
    cpu_register_physical_memory(addr + 0x20000, 0x1000, ide1_mem_index);
91
    cpu_register_physical_memory(addr + 0x40000, 0x40000, openpic_mem_index);
90 92
}
91 93

  
92 94
static void macio_init(PCIBus *bus)
......
191 193
    /* init basic PC hardware */
192 194
    vga_initialize(pci_bus, ds, phys_ram_base + ram_size, ram_size, 
193 195
                   vga_ram_size);
194
    openpic = openpic_init(pci_bus, 0x00000000, 0xF0000000, 1);
196
    openpic = openpic_init(NULL, &openpic_mem_index, 1);
195 197
    pci_pmac_set_openpic(pci_bus, openpic);
196 198
    
197 199
    /* XXX: suppress that */

Also available in: Unified diff