From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HH90a-0005MP-Kk for qemu-devel@nongnu.org; Tue, 13 Feb 2007 20:32:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HH90Z-0005MD-UF for qemu-devel@nongnu.org; Tue, 13 Feb 2007 20:32:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HH90Z-0005MA-O2 for qemu-devel@nongnu.org; Tue, 13 Feb 2007 20:32:31 -0500 Received: from ug-out-1314.google.com ([66.249.92.175]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HH90Z-0002qN-7O for qemu-devel@nongnu.org; Tue, 13 Feb 2007 20:32:31 -0500 Received: by ug-out-1314.google.com with SMTP id j40so24066ugd for ; Tue, 13 Feb 2007 17:32:30 -0800 (PST) Message-ID: Date: Tue, 13 Feb 2007 17:32:29 -0800 From: "Ed Swierk" Sender: eswierk@gmail.com MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_111102_21571833.1171416749688" Subject: [Qemu-devel] [PATCH] LinuxBIOS support: map BIOS into ISA address space as RAM instead of ROM Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_111102_21571833.1171416749688 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_111102_21571833.1171416749688 Content-Type: text/x-patch; name=qemu-isa-bios-ram.patch; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_ey539e3o Content-Disposition: attachment; filename="qemu-isa-bios-ram.patch" SW5kZXg6IHFlbXUtc25hcHNob3QtMjAwNy0wMi0wOV8wNS9ody9wYy5jCj09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0t IHFlbXUtc25hcHNob3QtMjAwNy0wMi0wOV8wNS5vcmlnL2h3L3BjLmMKKysrIHFlbXUtc25hcHNo b3QtMjAwNy0wMi0wOV8wNS9ody9wYy5jCkBAIC01MzAsNyArNTMwLDcgQEAgc3RhdGljIHZvaWQg cGNfaW5pdDEoaW50IHJhbV9zaXplLCBpbnQgdgogICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgSU9fTUVNX1VOQVNTSUdORUQpOwogICAgIGNwdV9yZWdpc3Rlcl9waHlzaWNhbF9tZW1v cnkoMHgxMDAwMDAgLSBpc2FfYmlvc19zaXplLCAKICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIGlzYV9iaW9zX3NpemUsIAotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg KGJpb3Nfb2Zmc2V0ICsgYmlvc19zaXplIC0gaXNhX2Jpb3Nfc2l6ZSkgfCBJT19NRU1fUk9NKTsK KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJpb3Nfb2Zmc2V0ICsgYmlvc19zaXpl IC0gaXNhX2Jpb3Nfc2l6ZSk7CiAKICAgICB7CiAgICAgICAgIHJhbV9hZGRyX3Qgb3B0aW9uX3Jv bV9vZmZzZXQ7Cg== ------=_Part_111102_21571833.1171416749688--