Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDFGE-0006ix-Qb for qemu-devel@nongnu.org; Wed, 25 Nov 2009 05:38:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDFG9-0006iR-Hz for qemu-devel@nongnu.org; Wed, 25 Nov 2009 05:38:09 -0500 Received: from [199.232.76.173] (port=41413 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDFG9-0006iO-Ak for qemu-devel@nongnu.org; Wed, 25 Nov 2009 05:38:05 -0500 Received: from cantor.suse.de ([195.135.220.2]:33315 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 1NDFG8-0003fk-Ps for qemu-devel@nongnu.org; Wed, 25 Nov 2009 05:38:05 -0500 Subject: Re: [Qemu-devel] Re: [PATCH 5/6] Convert linux bootrom to external rom and fw_cfg Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: Date: Wed, 25 Nov 2009 11:38:01 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <515008F0-22BE-4F07-AD39-F7FDB578E362@suse.de> References: <1258059195-17582-1-git-send-email-agraf@suse.de> <1258059195-17582-6-git-send-email-agraf@suse.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On 13.11.2009, at 07:37, Paolo Bonzini wrote: > On 11/12/2009 09:53 PM, Alexander Graf wrote: >> + /* Set DS to SS+SP - 0x10, so we can write our GDT descriptor = there */ >> + mov %ss, %eax >> + shl $4, %eax >> + add %esp, %eax >> + sub $0x10, %eax >> + shr $4, %eax >=20 > Dead code? Or wrong comment and missing mov %eax, %gs? The latter. > Also, I know this is running with disabled interrupts, but why set %gs = just below the stack instead of decrementing %esp? Uh. Decrementing %esp should work too I guess. That's just what I came = up with. Alex=