| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| Message-Id: | <201105040947.p449liZg012192@delorie.com> |
| X-Recipient: | djgpp AT delorie DOT com |
| From: | "Josep M." <josepmaria AT turomas DOT com> |
| To: | <djgpp AT delorie DOT com> |
| Subject: | error caused by interrupt |
| Date: | Wed, 4 May 2011 11:20:54 +0200 |
| MIME-Version: | 1.0 |
| X-Mailer: | Microsoft Office Outlook, Build 11.0.5510 |
| Thread-Index: | AcnTayc8vvY6ilNtRGSlC3wzvDSSAoRtoZEg |
| In-Reply-To: | <Pine.LNX.4.60.0905092154450.17133@narpes.com> |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2900.5579 |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
I have a trouble with a comparison:
If(1.0>2.0) sometimos return trae. I think it is caused by an hardware
interrupt that modifies copro registers. Tos ave and restore it I use that
code:
//saving
asm("fnsave %0\n\t"
"fwait\n\t"
:"=g" (state87)
);
//Interrupt code.
//restoring
asm("frstor %0\n\t"
"fwait\n\t"
:"=g" (state87)
);
But comparison continues wrong sometimos.
Any idea
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |