All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Henri Roosen <henriroosen@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] ARM: userspace apps result in Segmentation fault
Date: Thu, 16 Jul 2009 12:48:43 +0200	[thread overview]
Message-ID: <4A5F058B.2090808@domain.hid> (raw)
In-Reply-To: <b88603c30907160325k693081efi63b92b4e5f5a2e06@domain.hid>

Henri Roosen wrote:
> I am using the xenomai-2.4.7 release and also the provided patch for
> the 2.6.28 kernel:
> xenomai-2.4.7/ksrc/arch/arm/patches/adeos-ipipe-2.6.28-arm-1.12-00.patch

Ok, so the issue with unmasked context switches is a red herring.
I see you have VFP enabled, does your processor really have a VFP unit?
Could you try disabling CONFIG_VFP?

Also note that to you must take care of the FPU instructions you use. If
you have VFP and want to use it (and have it enabled in kernel), you
should pass:
CFLAGS="-mfpu=vfp -mfloat-abi=softfp"
LDFLAGS="-mfpu=vfp -mfloat-abi=softfp"
on Xenomai's configure command line
if you want to compile for soft-floats, you should pass
CFLAGS="-msoft-float"
LDFLAGS="-msoft-float"

If you do not pass anything, the compiler will use instructions which
needs enabling the (slow) FPU emulation in kernel-space. So, I would
advise to start with -msoft-float first, disabling CONFIG_VFP in kernel
configuration, then if it works, try enabling CONFIG_VFP and recompile
user-space with proper options.

I am sorry for this, I took care of passing the proper compiler flags
for FP in head, but not in the v2.4 branch.

-- 
                                          Gilles



  reply	other threads:[~2009-07-16 10:48 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-13  7:31 [Xenomai-help] ARM: userspace apps result in Segmentation fault Henri Roosen
2009-07-14 18:03 ` Gilles Chanteperdrix
2009-07-16  7:58   ` Henri Roosen
2009-07-16  8:23     ` Gilles Chanteperdrix
2009-07-16  8:27     ` Gilles Chanteperdrix
2009-07-16  9:24       ` Henri Roosen
2009-07-16  9:27         ` Gilles Chanteperdrix
2009-07-16  9:39           ` Henri Roosen
2009-07-16  9:46             ` Gilles Chanteperdrix
2009-07-16 10:25               ` Henri Roosen
2009-07-16 10:48                 ` Gilles Chanteperdrix [this message]
2009-07-16 12:44                   ` Henri Roosen
2009-07-16 14:53                     ` Gilles Chanteperdrix
2009-07-16 15:09                       ` Henri Roosen
2009-07-16 16:15                         ` Gilles Chanteperdrix
2009-07-18 11:33                         ` 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=4A5F058B.2090808@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=henriroosen@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.