isa memory remapping support (aka PPC PREP VGA support)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@773 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2004-04-28 22:26:05 +00:00
parent 8e9c4afe70
commit 26aa7d72cc
4 changed files with 38 additions and 24 deletions

View file

@ -896,7 +896,7 @@ void PPC_end_init (void)
VGA_init();
}
/* PC hardware initialisation */
/* PowerPC PREP hardware initialisation */
void ppc_prep_init(int ram_size, int vga_ram_size, int boot_device,
DisplayState *ds, const char **fd_filename, int snapshot,
const char *kernel_filename, const char *kernel_cmdline,
@ -911,6 +911,8 @@ void ppc_prep_init(int ram_size, int vga_ram_size, int boot_device,
/* allocate RAM */
cpu_register_physical_memory(0, ram_size, 0);
isa_mem_base = 0xc0000000;
if (linux_boot) {
/* now we can load the kernel */
ret = load_image(kernel_filename, phys_ram_base + KERNEL_LOAD_ADDR);