All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: roderik.wildenburg@domain.hid
Cc: xenomai@xenomai.org, wg@domain.hid
Subject: Re: [Xenomai-help] Floating Point Exceptions in RT-Tasks
Date: Fri, 06 Mar 2009 11:44:42 +0100	[thread overview]
Message-ID: <49B0FE9A.9040809@domain.hid> (raw)
In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2A0187305A@ARVMAIL1.mra.roland-man.biz>

[-- Attachment #1: Type: text/plain, Size: 927 bytes --]

roderik.wildenburg@domain.hid wrote:
>> Gilles sent you a patch affecting 
>> include/asm-powerpc/bits/pod.h a few weeks
>> ago, that fixed an FPU issue. Are you running with this patch applied?
>>
> 
> Yes, with 2.3.5 and 2.4.6. Both show the same behavior.
> Obviously, in the meantime, Wolfgang could reproduce the problem!?
>

Unfortunately, I'm not able to reproduce this bug on my side, even using the 
latest linuxppc_devel tree. I have attached my test code to make sure we are 
testing the same thing. This test code does raise the FPU exception properly.

> Roderik
> 
> --------------------------------------------------------
> manroland AG
> Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
> Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle   
> Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592
> USt-Ident-Nr. DE 250200933
> 


[-- Attachment #2: divzero.c --]
[-- Type: text/x-csrc, Size: 344 bytes --]

#include <sys/types.h>
#include <sys/mman.h>
#include <stdio.h>
#include <fenv.h>
#include <native/task.h>

double z;

int main (int argc, char **argv)
{
	double a = 23.0;

	z = 0;
	fesetenv(FE_ENABLED_ENV);

        mlockall(MCL_CURRENT | MCL_FUTURE);

	rt_task_shadow(NULL, "main", 10, 0);
	a /= z;
	rt_task_suspend(NULL);

	return (int)a;
}

  reply	other threads:[~2009-03-06 10:44 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-13 12:58 [Xenomai-help] Floating Point Exceptions in RT-Tasks thomas.debes
2009-02-13 13:16 ` Gilles Chanteperdrix
2009-02-13 14:01   ` Gilles Chanteperdrix
2009-02-16  6:19     ` thomas.debes
2009-02-18 14:07     ` thomas.debes
2009-02-18 14:12       ` Gilles Chanteperdrix
2009-02-18 14:16         ` thomas.debes
2009-02-18 14:31           ` Wolfgang Grandegger
2009-02-18 18:58             ` Wolfgang Grandegger
2009-02-18 19:04               ` Philippe Gerum
2009-02-18 19:10                 ` Philippe Gerum
2009-02-19  9:25               ` thomas.debes
2009-02-19 15:14                 ` Philippe Gerum
2009-02-19 15:19                   ` Philippe Gerum
2009-02-19 17:21                     ` thomas.debes
2009-02-20  8:44                     ` roderik.wildenburg
2009-02-20  9:35                       ` Philippe Gerum
2009-02-20 10:35                         ` roderik.wildenburg
2009-03-03 14:04                         ` thomas.debes
     [not found]                           ` <49AE4264.6070506@domain.hid>
2009-03-05  8:01                             ` thomas.debes
2009-03-05  8:17                             ` thomas.debes
2009-03-05  9:18                               ` Philippe Gerum
2009-03-05 14:13                                 ` roderik.wildenburg
2009-03-05 14:43                                   ` Philippe Gerum
2009-03-05 21:05                                     ` Wolfgang Grandegger
2009-03-05 21:20                                       ` Philippe Gerum
2009-03-06 18:27                                       ` Philippe Gerum
2009-03-23 14:25                                         ` roderik.wildenburg
2009-03-24  9:22                                           ` Philippe Gerum
2009-03-06  7:17                                     ` roderik.wildenburg
2009-03-06 10:44                                       ` Philippe Gerum [this message]
     [not found]                                         ` <49B10464.8010703@domain.hid>
2009-03-06 11:38                                           ` Philippe Gerum
2009-03-06 12:06                                         ` roderik.wildenburg
2009-03-06 14:26                                           ` Philippe Gerum
2009-02-13 14:40 ` Philippe Gerum
2009-02-16  6:00   ` thomas.debes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49B0FE9A.9040809@domain.hid \
    --to=rpm@xenomai.org \
    --cc=roderik.wildenburg@domain.hid \
    --cc=wg@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.