All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Aurele Traynard <aurele.traynard@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] first module help
Date: Fri, 22 Apr 2011 15:15:15 +0200	[thread overview]
Message-ID: <4DB17F63.2050504@domain.hid> (raw)
In-Reply-To: <BANLkTikNWeDdRMXFN=gHK=sQshMgP-=y5w@domain.hid>

Aurele Traynard wrote:
> ok i'm sorry i wasn't clear at all...
> my problem is : when i call readl in a rt_task, the task is stopped...
> (maybe because the rt_task is launched in a module?)
> "Xenomai: suspending kernel thread bf0041c8 ('test_rt') at 0xbf003824 after
> exception #0"
> if i remove the readl there is no problem
> 
> With a normal Linux, in a module there isn't any problem

On what platform? I can think of two things:
- the platform you use maps the ioremaped memory on-demand (x86 and ARM
at least do not allow this, but I do not know about other platforms)
- you are making an unaligned access, it works with Linux because it has
a handler for handling unaligned accesses, whereas Xenomai default
handler is to simply suspend a task doing this kind of things.

Please do not forget to CC the mailing list.

-- 
					    Gilles.


  parent reply	other threads:[~2011-04-22 13:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-22  6:52 [Xenomai-help] first module help Aurele Traynard
2011-04-22  7:19 ` Gilles Chanteperdrix
2011-04-22  9:01 ` Gilles Chanteperdrix
2011-04-22 12:49   ` Aurele Traynard
     [not found]   ` <BANLkTikNWeDdRMXFN=gHK=sQshMgP-=y5w@domain.hid>
2011-04-22 13:15     ` Gilles Chanteperdrix [this message]
2011-04-22 13:42       ` Aurele Traynard
2011-04-22 14:20         ` Gilles Chanteperdrix
2011-04-22 15:11           ` Aurele Traynard

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=4DB17F63.2050504@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=aurele.traynard@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.