]> git.pld-linux.org Git - packages/qemu.git/blame - qemu-isa-bios-ram.patch
- fix ncurses detection; enable mixemu; enable TLS in VNC support
[packages/qemu.git] / qemu-isa-bios-ram.patch
CommitLineData
2aefa54b
ER
1Index: qemu-snapshot-2007-02-09_05/hw/pc.c
2===================================================================
3--- qemu-snapshot-2007-02-09_05.orig/hw/pc.c
4+++ qemu-snapshot-2007-02-09_05/hw/pc.c
5@@ -522,15 +522,13 @@ static void pc_init1(int ram_size, int v
6 cpu_register_physical_memory(0xc0000, 0x10000,
7 vga_bios_offset | IO_MEM_ROM);
8
9- /* map the last 128KB of the BIOS in ISA space */
10+ /* copy the last 128KB of the BIOS to ISA space */
11 isa_bios_size = bios_size;
12 if (isa_bios_size > (128 * 1024))
13 isa_bios_size = 128 * 1024;
14- cpu_register_physical_memory(0xd0000, (192 * 1024) - isa_bios_size,
15- IO_MEM_UNASSIGNED);
16- cpu_register_physical_memory(0x100000 - isa_bios_size,
17- isa_bios_size,
18- (bios_offset + bios_size - isa_bios_size) | IO_MEM_ROM);
19+ memcpy(phys_ram_base + 0x100000 - isa_bios_size,
20+ phys_ram_base + bios_offset + bios_size - isa_bios_size,
21+ isa_bios_size);
22
23 {
24 ram_addr_t option_rom_offset;
This page took 0.031097 seconds and 4 git commands to generate.