From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzEHg-0002Np-An for qemu-devel@nongnu.org; Sun, 09 Nov 2008 12:41:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzEHe-0002MY-MX for qemu-devel@nongnu.org; Sun, 09 Nov 2008 12:41:11 -0500 Received: from [199.232.76.173] (port=32784 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzEHe-0002MV-K4 for qemu-devel@nongnu.org; Sun, 09 Nov 2008 12:41:10 -0500 Received: from mail.gmx.net ([213.165.64.20]:46034) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KzEHd-0003kB-OL for qemu-devel@nongnu.org; Sun, 09 Nov 2008 12:41:10 -0500 Message-ID: From: "Sebastian Herbszt" References: <20081103092620.8058.91416.stgit@dhcp-1-237.local><20081103092646.8058.1107.stgit@dhcp-1-237.local> <20081107002552.GA31207@morn.localdomain> In-Reply-To: <20081107002552.GA31207@morn.localdomain> Date: Sun, 9 Nov 2008 18:40:18 +0100 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] [PATCH v2 5/6] Don't use unreservedmemory in BIOS. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor , Gleb Natapov Cc: bochs-developers@lists.sourceforge.net, qemu-devel@nongnu.org Kevin O'Connor wrote: > On Mon, Nov 03, 2008 at 11:26:46AM +0200, Gleb Natapov wrote: >> Use only first page and last page of low memory. OSes assumes that first >> page is used by bios and last page is reserved in e820 map. > [...] >> ;; init the stack pointer >> - mov esp, #0x00080000 >> + mov esp, #0x9fbf0 > > Random note - I'm told that some option roms can relocate the EBDA. > Setting the stack in the EBDA area will prevent that from working. The option rom for the LSI SCSI controller (8xx_64.rom) relocates the EBDA. It moves it from 0x9fc0 to 0x9f00. > I'm not sure if this is really a problem though - a relocated EBDA > would likely break bochs bios today. Something to be aware of though. EBDA relocation breaks BIOS from cvs. It used to work with my patch "rombios.c - EBDA move fix" available at sf as #1909786. Since the option rom updates the value at 0040h:000Eh it's possible to use it to set the correct value of esp. - Sebastian