Revision b584726d hw/ppc_prep.c
b/hw/ppc_prep.c | ||
---|---|---|
543 | 543 |
m48t59_t *m48t59; |
544 | 544 |
int PPC_io_memory; |
545 | 545 |
int linux_boot, i, nb_nics1, bios_size; |
546 |
ram_addr_t ram_offset, vga_ram_offset, bios_offset;
|
|
546 |
ram_addr_t ram_offset, bios_offset; |
|
547 | 547 |
uint32_t kernel_base, kernel_size, initrd_base, initrd_size; |
548 | 548 |
PCIBus *pci_bus; |
549 | 549 |
qemu_irq *i8259; |
... | ... | |
580 | 580 |
ram_offset = qemu_ram_alloc(ram_size); |
581 | 581 |
cpu_register_physical_memory(0, ram_size, ram_offset); |
582 | 582 |
|
583 |
/* allocate VGA RAM */ |
|
584 |
vga_ram_offset = qemu_ram_alloc(vga_ram_size); |
|
585 |
|
|
586 | 583 |
/* allocate and load BIOS */ |
587 | 584 |
bios_offset = qemu_ram_alloc(BIOS_SIZE); |
588 | 585 |
if (bios_name == NULL) |
... | ... | |
663 | 660 |
cpu_register_physical_memory(0x80000000, 0x00800000, PPC_io_memory); |
664 | 661 |
|
665 | 662 |
/* init basic PC hardware */ |
666 |
pci_vga_init(pci_bus, phys_ram_base + vga_ram_offset, |
|
667 |
vga_ram_offset, vga_ram_size, 0, 0); |
|
663 |
pci_vga_init(pci_bus, vga_ram_size, 0, 0); |
|
668 | 664 |
// openpic = openpic_init(0x00000000, 0xF0000000, 1); |
669 | 665 |
// pit = pit_init(0x40, i8259[0]); |
670 | 666 |
rtc_init(0x70, i8259[8], 2000); |
Also available in: Unified diff