From owner-freebsd-questions@FreeBSD.ORG Mon Apr 7 10:24:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7985B1065677 for ; Mon, 7 Apr 2008 10:24:58 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 1575F8FC2C for ; Mon, 7 Apr 2008 10:24:49 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.13.8) with ESMTP id m37AOaJd086341; Mon, 7 Apr 2008 12:24:36 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.13.8/Submit) with ESMTP id m37AOWmd086338; Mon, 7 Apr 2008 12:24:34 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 7 Apr 2008 12:24:32 +0200 (CEST) From: Wojciech Puchar To: Unga In-Reply-To: <687872.53069.qm@web57011.mail.re3.yahoo.com> Message-ID: <20080407122423.S86337@wojtek.tensor.gdynia.pl> References: <687872.53069.qm@web57011.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Inline assembly under FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 10:24:58 -0000 > asm("pushfl; stc; int $0x13; setc %%al; popfl" > : "+a" (ax), "+b" (bx), "=c" (cx), "+d" (dx) > : : "esi", "edi"); > > if ((u8)ax) > return -1; /* No extended information */ > else > return 1; /* Extended information available */ > } > > When it is executing the int $0x13, it crashes with > "Program received signal SIGBUS, Bus error." > > Could you guys give me a helping hand to identify > what's the problem? > > Input and return values are at: > http://en.wikipedia.org/wiki/INT_13 you are in 32-bit mode > > Thanks in advance. > > Kind regards > Unga > > > ____________________________________________________________________________________ > You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. > http://tc.deals.yahoo.com/tc/blockbuster/text5.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >