[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Laurent.Kersten@alcatel.be] (fwd)



>From owner-rtl Wed May 16 03:35:09 2001
Received: from relay1.alcatel.be (alc119.alcatel.be [195.207.101.119])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f4G9Z8r05168
	for <rtl@rtlinux.org>; Wed, 16 May 2001 03:35:09 -0600
Received: from bemail04.net.alcatel.be (localhost [127.0.0.1])
	by relay1.alcatel.be (8.10.1/8.10.1) with SMTP id f4G9UK021298
	for <rtl@rtlinux.org>; Wed, 16 May 2001 11:30:29 +0200 (MET DST)
Received: by bemail04.net.alcatel.be(Lotus SMTP MTA v4.6.7  (934.1 12-30-1999))  id C1256A4E.0034318B ; Wed, 16 May 2001 11:30:05 +0200
X-Lotus-FromDomain: ALCATEL
From: Laurent.Kersten@alcatel.be
To: rtl@rtlinux.org
Message-ID: <C1256A4E.00342E59.00@bemail04.net.alcatel.be>
Date: Wed, 16 May 2001 11:29:56 +0200
Subject: Bug in llimd in RTAI (version 1.5 and 1.6)
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline



Hello,

Whether I try to use llimd with a negative number as first argument, I got a crash (or an
arithmetic exception if I use the function in a normal linux process).

The following call crash : llimd ( -25 000 000,400 000 000, 1000 000)
But the following seems OK :   llimd ( 25 000 000,400 000 000, 1000 000)

In a non RT task, the exception is generated by the first div instruction. According to Intel's
documentation, it should trigger an exception when the result is too big for the target register, this seems not to be the case (as long as we don't treat the EDX:EAX pairs has an unsigned number but as a negative one, it should be no problem).

Does anybody have a clue for that ?

Laurent