Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2008 12:24:32 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Unga <unga888@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Inline assembly under FreeBSD
Message-ID:  <20080407122423.S86337@wojtek.tensor.gdynia.pl>
In-Reply-To: <687872.53069.qm@web57011.mail.re3.yahoo.com>
References:  <687872.53069.qm@web57011.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 	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"
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080407122423.S86337>