From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGVTW-0006Kn-BW for qemu-devel@nongnu.org; Fri, 04 Dec 2009 05:33:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGVTR-0006Bz-6r for qemu-devel@nongnu.org; Fri, 04 Dec 2009 05:33:21 -0500 Received: from [199.232.76.173] (port=47231 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGVTQ-0006Bk-Up for qemu-devel@nongnu.org; Fri, 04 Dec 2009 05:33:16 -0500 Received: from cantor.suse.de ([195.135.220.2]:39742 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGVTQ-0007wW-46 for qemu-devel@nongnu.org; Fri, 04 Dec 2009 05:33:16 -0500 From: Alexander Graf Date: Fri, 4 Dec 2009 11:33:13 +0100 Message-Id: <1259922793-20433-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH v2] [0.12] Map BIOS f-segment as RAM, not as ROM List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin O'Connor , Gleb Natapov , Aurelien Jarno , Sebastian Herbszt SeaBIOS needs to write to the f-segment. So it needs to have some way to set that from read-only to read-write, write in it and when it's done set it to read-only again. On PCI we have a mechanism for that. The ISA machine does not though. To stay regression free and happily enable users to continue using the -M isapc machine let's just map it as RAM. The BIOS on PCI will set it to r/o later either way. Signed-off-by: Alexander Graf --- v1 -> v2: - always map r/w --- hw/pc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 8c1b7ea..b5dabdd 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1075,7 +1075,7 @@ static void pc_init1(ram_addr_t ram_size, isa_bios_size = 128 * 1024; 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)); -- 1.6.0.2