From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWIxg-00034W-4Y for qemu-devel@nongnu.org; Thu, 21 Aug 2008 18:49:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWIxe-00033d-JY for qemu-devel@nongnu.org; Thu, 21 Aug 2008 18:48:59 -0400 Received: from [199.232.76.173] (port=41064 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWIxe-00033X-Bg for qemu-devel@nongnu.org; Thu, 21 Aug 2008 18:48:58 -0400 Received: from mail.gmx.net ([213.165.64.20]:48688) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KWIxd-0003ZR-Cc for qemu-devel@nongnu.org; Thu, 21 Aug 2008 18:48:57 -0400 Message-ID: <02ef01c903e0$0daa44f0$0201a8c0@zeug> From: "Sebastian Herbszt" References: <20080820131529.GJ3235@minantech.com> <00c801c9031b$e69fc340$0201a8c0@zeug> <20080821053405.GA27587@minantech.com> Date: Fri, 22 Aug 2008 00:47:44 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [Bochs-developers] BIOS, ACPI, CMOS and Windows EvenID: 4 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: bochs-developers@lists.sourceforge.net, qemu-devel@nongnu.org Gleb Natapov wrote: >> The Microsoft document suggests to copy the CMOS data to somewhere in memory >> and access it there. I guess rombios space from 0xe000 to 0xffff could be a good >> candidate. > No need to copy the whole CMOS. Copying only memory size should be > enough. Also putting it somewhere in first 4K should be better. You > can't write into 0xe000-0xffff unless chipset shadows it in a memory. bios_shadow_init() from rombios32.c does already support this for the 440fx. >> The 440fx specs says "The top of memory is determined by the value written into DRB7." >> We might get the proper value from there. But it also says "Note that the PMC supports >> a maximum of 1 Gbytes of DRAM." >> > Yeah, I saw that my real HW takes top of the memory somewhere from the > chipset and looked in 440fx specs if it has this info, but it turned > out that we abuse 440fx and sometimes use much more memory that it > supports. We can re-use DRB registers for our needs and store memory > size there on POST (we can store 8 bytes there, so it should be enough) > and read them from AML. Are all users of bochs BIOS uses the same > chipset? I think bochs, qemu, xen and virtual box emulate the 440fx. - Sebastian