From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GM1eV-0004CS-C9 for qemu-devel@nongnu.org; Sat, 09 Sep 2006 08:09:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GM1eU-0004Bo-Q2 for qemu-devel@nongnu.org; Sat, 09 Sep 2006 08:09:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GM1eU-0004BV-LU for qemu-devel@nongnu.org; Sat, 09 Sep 2006 08:09:38 -0400 Received: from [84.96.92.56] (helo=smTp.neuf.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GM1fJ-0006nr-66 for qemu-devel@nongnu.org; Sat, 09 Sep 2006 08:10:29 -0400 Received: from [84.102.211.78] by sp604003mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0J5B00E00R3VLCN0@sp604003mt.gpm.neuf.ld> for qemu-devel@nongnu.org; Sat, 09 Sep 2006 14:09:31 +0200 (CEST) Date: Sat, 09 Sep 2006 14:10:01 +0200 From: Fabrice Bellard Subject: Re: [Qemu-devel] PCI Bios fixup In-reply-to: <20060907010229.GF6876@bouh.residence.ens-lyon.fr> Message-id: <4502AF19.6050002@bellard.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <20060907010229.GF6876@bouh.residence.ens-lyon.fr> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: samuel.thibault@ens-lyon.org Cc: guillem@debian.org, qemu-devel@nongnu.org Right, this is better. An even better fix would be to clear CS.RPL before the popf. Regards, Fabrice. Samuel Thibault wrote: > Hi, > > The patch that qemu applies to bochs bios is a bit bugged: > > pci_pro_fail: > pop edi > pop esi > - sti > popf > stc > + and dword ptr[esp+4],0xfffffffc ;; reset CS.RPL for kqemu > retf > > The and operation clears carry... So that pci functions always leave > carry clear, and hence tell operating systems that they always work... > This should rather be: > > pci_pro_fail: > pop edi > pop esi > - sti > popf > + and dword ptr[esp+4],0xfffffffc ;; reset CS.RPL for kqemu > stc > retf > > Samuel > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel > >