Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GL8Ij-0003z1-Km for qemu-devel@nongnu.org; Wed, 06 Sep 2006 21:03:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GL8Ih-0003w6-Ms for qemu-devel@nongnu.org; Wed, 06 Sep 2006 21:03:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GL8Ih-0003vf-CH for qemu-devel@nongnu.org; Wed, 06 Sep 2006 21:03:27 -0400 Received: from [212.247.155.76] (helo=swip.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GL8Ix-0005pB-Cq for qemu-devel@nongnu.org; Wed, 06 Sep 2006 21:03:43 -0400 Date: Thu, 7 Sep 2006 03:02:29 +0200 From: Samuel Thibault Message-ID: <20060907010229.GF6876@bouh.residence.ens-lyon.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] PCI Bios fixup Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: guillem@debian.org 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