From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kze9d-0005W2-21 for qemu-devel@nongnu.org; Mon, 10 Nov 2008 16:18:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kze9b-0005VK-01 for qemu-devel@nongnu.org; Mon, 10 Nov 2008 16:18:36 -0500 Received: from [199.232.76.173] (port=56987 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kze9a-0005VH-RN for qemu-devel@nongnu.org; Mon, 10 Nov 2008 16:18:34 -0500 Received: from mx2.redhat.com ([66.187.237.31]:56883) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kze9X-0002jC-NV for qemu-devel@nongnu.org; Mon, 10 Nov 2008 16:18:34 -0500 Date: Mon, 10 Nov 2008 23:18:11 +0200 From: Gleb Natapov Message-ID: <20081110211810.GC19381@redhat.com> References: <20081103092620.8058.91416.stgit@dhcp-1-237.local> <20081103092640.8058.55798.stgit@dhcp-1-237.local> <20081108075117.GA19237@redhat.com> <02FE818AB4F84FE3B4709B4AF0E7F89D@FSCPC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <02FE818AB4F84FE3B4709B4AF0E7F89D@FSCPC> Subject: [Qemu-devel] Re: [Bochs-developers] [PATCH v2 4/6] Execute rombios32 code fromromaddress 0xe0000. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sebastian Herbszt Cc: bochs-developers@lists.sourceforge.net, qemu-devel@nongnu.org On Mon, Nov 10, 2008 at 08:25:07PM +0100, Sebastian Herbszt wrote: > Gleb Natapov wrote: >> On Sat, Nov 08, 2008 at 12:20:56AM +0100, Sebastian Herbszt wrote: >>>> diff --git a/bios/rombios32start.S b/bios/rombios32start.S >>>> index 601e2b0..1900261 100644 >>>> --- a/bios/rombios32start.S >>>> +++ b/bios/rombios32start.S >>>> @@ -32,10 +32,17 @@ _start: >>>> /* clear bss section */ >>>> xor %eax, %eax >>>> mov $__bss_start, %edi >>>> - mov $_end, %ecx >>>> + mov $__bss_end, %ecx >>>> sub %edi, %ecx >>>> rep stosb >>> >>> We do overwrite data at 0x700 here. Is this acceptable for S3 resume? >>> >> First page is reserved for BIOS use. > > I might have missed something, but Ralf Brown's MEMORY MAP > Release 61 says "MEM 0070h:0000h - DOS 2+ IO.SYS LOAD ADDRESS". > > Which specification do you refer to? > DOS does not support S3 :). Linux reserve first page for BIOS use (as can be seed in the code). As far as I know Windows doesn't touch even more of low memory. -- Gleb.