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." To: Subject: error caused by interrupt Date: Wed, 4 May 2011 11:20:54 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcnTayc8vvY6ilNtRGSlC3wzvDSSAoRtoZEg In-Reply-To: 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 Precedence: bulk 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