From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NF6DZ-0006VG-Vh for qemu-devel@nongnu.org; Mon, 30 Nov 2009 08:23:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NF6DV-0006Rm-7r for qemu-devel@nongnu.org; Mon, 30 Nov 2009 08:23:05 -0500 Received: from [199.232.76.173] (port=32965 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NF6DV-0006Rg-0d for qemu-devel@nongnu.org; Mon, 30 Nov 2009 08:23:01 -0500 Received: from cantor2.suse.de ([195.135.220.15]:49316 helo=mx2.suse.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NF61t-0004kS-9b for qemu-devel@nongnu.org; Mon, 30 Nov 2009 08:11:01 -0500 Message-ID: <4B13C45D.8000503@suse.de> Date: Mon, 30 Nov 2009 14:10:53 +0100 From: Alexander Graf MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Make -kernel for linux work with bochsbios References: <1258476556-32472-1-git-send-email-agraf@suse.de> In-Reply-To: <1258476556-32472-1-git-send-email-agraf@suse.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori Alexander Graf wrote: > While trying to run -kernel with -bios pc-bios/pcbios.bin, I realized > that I was actually writing data to %es, but only set up %ds to a 32-bit > segment we want to write to. > > So at the end of the day the data hasn't actually been copied. Oops. > > So here's a fix to set ES instead of DS, which makes -kernel work with > BOCHS bios again (and actually makes the code do the correct thing)! > ping