All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] LinuxBIOS support: map BIOS into ISA address space as RAM instead of ROM
@ 2007-02-14  1:32 Ed Swierk
  2007-02-14 21:59 ` [Qemu-devel] " Ed Swierk
  0 siblings, 1 reply; 3+ messages in thread
From: Ed Swierk @ 2007-02-14  1:32 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]

LinuxBIOS writes the IRQ routing table (PIRQ) to 0xf000 and then reads
it back to verify the write. Currently qemu maps the top 128 KB of the
BIOS into ISA address space (0xe000 - 0xffff) as ROM, which causes the
write to fail, preventing Linux from finding interrupt routing info.

This patch changes qemu to map the BIOS into ISA address space as RAM
instead of ROM, allowing LinuxBIOS to run on qemu with no further
modifications (although the DRAM size is still not detected properly).

I've verified that Windows 2000 and Linux still boot with the Bochs
BIOS with this patch applied.

--Ed

[-- Attachment #2: qemu-isa-bios-ram.patch --]
[-- Type: text/x-patch, Size: 637 bytes --]

Index: qemu-snapshot-2007-02-09_05/hw/pc.c
===================================================================
--- qemu-snapshot-2007-02-09_05.orig/hw/pc.c
+++ qemu-snapshot-2007-02-09_05/hw/pc.c
@@ -530,7 +530,7 @@ static void pc_init1(int ram_size, int v
                                  IO_MEM_UNASSIGNED);
     cpu_register_physical_memory(0x100000 - isa_bios_size, 
                                  isa_bios_size, 
-                                 (bios_offset + bios_size - isa_bios_size) | IO_MEM_ROM);
+                                 bios_offset + bios_size - isa_bios_size);
 
     {
         ram_addr_t option_rom_offset;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-14 23:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-14  1:32 [Qemu-devel] [PATCH] LinuxBIOS support: map BIOS into ISA address space as RAM instead of ROM Ed Swierk
2007-02-14 21:59 ` [Qemu-devel] " Ed Swierk
2007-02-14 23:12   ` Fabrice Bellard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.