All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Steven Seeger <sseeger@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] fpu issue
Date: Wed, 21 Jan 2009 09:28:29 +0000	[thread overview]
Message-ID: <4976EABD.3060505@domain.hid> (raw)
In-Reply-To: <51CAD0CE1504444DBE77CBBE51A0135D534028@domain.hid>

Steven Seeger wrote:
> Hello everyone. I have the dumps here from the header file that Gilles
> was kind enough to provide to me.
> 
> When the problem does not occur:
> 
> sizeof(fpreg_t): 12
> cwd: 0000037f,  swd: 00000000
> fip: 08048c3e,  fcs: 01d00073
> foo: 0959961c,  fos: 0000007b
> FPU registers stack, top at 0:
> 7: Empty
> 6: Empty
> 5: Empty
> 4: Empty
> 3: Empty
> 2: Empty
> 1: Empty
> 0: Empty
> 
> When the problem does occur:
> 
> sizeof(fpreg_t): 12
> cwd: 0000037f,  swd: 00000000
> fip: 08048c3e,  fcs: 01d00073
> foo: 00000000,  fos: 00000000
> FPU registers stack, top at 0:
> 7:  10.000000000
> 6:  25.000000000
> 5: 0
> 4: 0
> 3: 0
> 2: 0
> 1: 0
> 0: - inf.
> 
> What's interesting is that 10.0 and 25.0 are coming from my other task.
> I will attach my code as well. You can see that I'm dumping these values
> in func2, and it seems that the FPU is perhaps left in an undesirable
> state by func?
> 
> This problem occurs on a geode GX1 and a geode LX800. I hate geodes.

Ok. So the FPU state is garbled. Could you put printks in kernel-space
to trace the various FPU operations made by xenomai, you can use strcmp
to check that current->comm is "double_test", and you should put
different printks in all branches of the FPU handling functions, to know
which branches are taken.

-- 
                                                 Gilles.


  reply	other threads:[~2009-01-21  9:28 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-20  4:25 [Xenomai-help] fpu issue Steven Seeger
2009-01-20  7:20 ` Gilles Chanteperdrix
2009-01-20 14:34   ` Steven Seeger
2009-01-20 14:49     ` Gilles Chanteperdrix
2009-01-20 14:55       ` Steven Seeger
2009-01-20 14:56         ` Gilles Chanteperdrix
2009-01-21  0:40           ` Steven Seeger
2009-01-21  9:28             ` Gilles Chanteperdrix [this message]
2009-01-21 13:30               ` Steven Seeger
2009-01-21 16:42               ` Steven Seeger
2009-01-21 16:48                 ` Gilles Chanteperdrix
2009-01-21 17:07                   ` Steven Seeger
2009-01-21 17:11                     ` Gilles Chanteperdrix
2009-01-21 17:16                       ` Steven Seeger
2009-01-21 17:42                       ` Steven Seeger
2009-01-21 18:01                         ` Gilles Chanteperdrix
2009-01-21 19:41                           ` Steven Seeger
2009-01-21 19:48                             ` Gilles Chanteperdrix
2009-01-21 20:05                               ` Steven Seeger
2009-01-21 20:08                               ` Steven Seeger
2009-01-21 20:45                               ` Steven Seeger
2009-01-21 20:47                               ` Steven Seeger
2009-01-21 21:13                                 ` Gilles Chanteperdrix
2009-01-21 21:20                                   ` Steven Seeger
2009-01-21 21:26                                     ` Gilles Chanteperdrix
2009-01-21 21:27                                       ` Steven Seeger
2009-01-21 21:44                                       ` Steven Seeger
2009-01-21 21:56                                         ` Gilles Chanteperdrix
2009-01-21 21:57                                           ` Steven Seeger
2009-01-26 16:13                                             ` Gilles Chanteperdrix
2009-01-27 10:28                                               ` [Xenomai-help] fpu issue on PPC ? roderik.wildenburg
2009-01-27 10:35                                                 ` Gilles Chanteperdrix
2009-01-21 16:43               ` [Xenomai-help] fpu issue Steven Seeger
  -- strict thread matches above, loose matches on Subject: below --
2008-02-09  1:36 Steven Seeger
2008-02-09 13:29 ` Gilles Chanteperdrix
2008-02-10 15:32   ` Steven Seeger
2008-02-10 15:41     ` Gilles Chanteperdrix
2008-02-10 16:36     ` Gilles Chanteperdrix

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=4976EABD.3060505@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=sseeger@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.